-
Notifications
You must be signed in to change notification settings - Fork 31
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 script results failures #87
Conversation
This prevents multiple timeouts running at the same time, which allows several simultaneous calls to get script results, causing race conditions.
I patched this into my version and could no longer reproduce the error I was seeing. I noticed that "activitiesInteval" should perhaps be "activitiesInterval" (missing 'r'), but I don't know the code well enough to comment on correctness. --Michael (original poster on the forum) |
Thanks for the feedback @austinMLB. I fixed that typo and removed a stray |
Repeating the problem on ome-training-4 During a repeat, got more failures. And a server error when trying to clear the activities (this repeated as well):
|
Unfortunately, on py3-ci, I am still getting the failures as well. Nevertheless, I can clear the list of Activities on py3-ci without getting the server error as I did on ome-training-4 above #87 (comment) - so there is some improvement... possibly |
Apologies @pwalczysko, it appears that again this PR wasn't included. Seems to be happening a lot these days.
at snoopycrimecop@82bf95a |
This PR seems to be excluded again on snoopycrimecop@82bf95a ? I cannot see any apparent reason reported there for it. |
@pwalczysko : likely caused by a delayed job on py3-ci. Should be there now. |
Repeated on py3-ci just now. Batch image export run in close succession 18 times on the ca 400 images (executed on 10 datasets) of the idr0021 project. The zips;were also created and attached as expected. Ready to merge FMPOV |
This prevents multiple timeouts running at the same time, which allows several simultaneous calls
to get script results, causing race conditions.
See https://forum.image.sc/t/omero-scripts-producing-failed-to-get-results/31601
To test:
request.session
containing the results was over-written by the other request. E.g. as described at https://stackoverflow.com/questions/13748166/django-session-race-condition