-
-
Notifications
You must be signed in to change notification settings - Fork 827
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
Re-enable any queues that were disabled for background processing, on end #27023
Conversation
Thank you for contributing to CiviCRM! ❤️ We will need to test and review the PR. 👷 Introduction for new contributors
Quick links for reviewers |
… end This addresses what is likely an artificial scenario but essentially if these steps are followed twice within the same function - create a queue - run the queue via runAll The second time will fail because the queue was disabled & no re-enabled, despite being perisistent
47f1afe
to
29776f7
Compare
Yeah, I think it's fair/symmetric to say: "We're only disabling background while the foreground thing is active." Agree it's a kind of a funny/unlikely scenario. If you're happy with it and it passes, then go ahead and merge. Just to verbalize some characteristics of this approach:
|
@totten yeah - I wasn't sure about putting it in |
b10d3f3
to
13b30d9
Compare
Actioning " If you're happy with it and it passes, then go ahead and merge." |
Just to verbalize more, because this comment didn't connect for me. In my mind, I comprehend 4 main scenarios -- based on mixing two main variables:
Mixing those, we get the 4 cases:
I interpreted your goal/scenario as "Write phpunit tests involving a persistent background service". If I were trying to do that, how would I have approached testing?
Relatedly -- (None of that's a criticism. I can see how one might interpret |
@totten thanks - I picked up |
Ports a patch that was discussed & merged upstream to address a unit test issue I hit (Note I don't think any WMF specific review is required here as it is merged to civicrm master) civicrm/civicrm-core#27023 Bug: T340040 Change-Id: Ia16661fc3a17de096e6a148c5ff9e0a96a4a85f8
…
Overview
This addresses what is likely an artificial scenario but
essentially if these steps are followed twice in separate processes
The second time will fail because the queue was disabled & no re-enabled, despite being perisistent
Before
After
Persistent queues are more re-usable
Technical Details
Comments