-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Fix randomly failing test test_enqueue_once_after_enqueue
#17950
Comments
The exception is being raised from here, in
It seems like whatever caching backend is present in CI is intermittently failing to return a result for the
We are trying to Since I have Redis in my local environment, this always works properly, but I suspect the setup in CI is different. |
HA! It was driving me mad yesterday, thanks for flagging this @jeremystretch |
…st (#18062) * Wait until job1 exists in Redis before enqueueing job2 * Job can exist but not have status * Catch InvalidJobOperation and use as trigger for retry * Catch InvalidJobOperation when deleting/canceling job * Remove testing code
Proposed Changes
The test
netbox.tests.test_jobs.EnqueueTest.test_enqueue_once_after_enqueue
occasionally fails for an unknown reason (see this example). This needs to be investigated and resolved.Justification
CI tests should always pass reliably.
The text was updated successfully, but these errors were encountered: