-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add exclusiveWith for transactions #12
Comments
It can be done. Understand that We consider the former case, specifying interference for transactions. The process is the following:
/* 1. Specify interference rules on transactions */
trait MyPhysicalTableBasedInterferenceSpecification extends PhysicalTableBasedInterferenceSpecification {
/* 2. Configure the platform to view transactions. */
self: SimpleKeystonePlatform with SimpleSoftwareAllocation with SimpleKeystoneTransactionLibrary =>
/* ... */
/* 3. Tag two transactions as exclusive */
for {
/* Tag each transaction as used, and retrieve its counterpart */
l <- t12_app1_rd_d1.used.toPhysical
r <- t221_app22_rd_d2.used.toPhysical
} yield {
l exclusiveWith r /* Tag the selected transactions as exclusive */
} @kevin-delmas , I am conscious this is quite an inelegant workaround. I might ping you to discuss how to add an operator on |
The workaround of @Gaudeval is indeed a solution. t12_app1_rd_d1 exclusiveWith t221_app22_rd_d2 If so, this may request an additional development to be scheduled. |
Thank you @Gaudeval and @kevin-delmas. |
Ok then, we add that to the scheduled enhancements. |
It would be great to be able to have mutually exclusive transactions like done for the applications. This would allow us to work at a lower level of granularity, which helps to be more precise in some cases.
For example, t_a exclusiveWith t_b.
The text was updated successfully, but these errors were encountered: