Bulk Operation retries
under review
L
L D
Hi! is there any ongoing plan to fix this issue or is it still into discussion on how to handle it?
I feel that what Patou Tech said could be a good way to do it.
Matt Sodomsky
L D: We haven't solved this via an internal retry system yet. Many people have solved this by spacing out the scheduling of their bulk operation tasks. Can you post in #general let us know when you are running into this? We might be able to suggest a path forward.
Tim Mackey
Oof, just started running up against this myself. Getting an error "A bulk query operation for this app and shop is already in progress", will have to reschedule our tasks for now!
Max Sadlowski
Would agree with this. The use case is particularly apparent if we have multiple evening tasks that use the bulk api. If we trigger all of those to run at midnight, one will run and the others will error out.
Current work around is to offset these runs with the scheduler, but we never know exactly how long those bulk runs will take.
Would love to see a queue for this instead of it simply failing.
P
Patou Tech
Maybe if there was an internal queue for bulk operations that could be nice? Since it's possible to query for the current bulk operation status, the internal queue could just add bulk operations to the queue while waiting for the others to finish. Maybe this could be a configuration option on the store level or even on the action level -- some people might want to know if they're trying to do concurrent bulk ops and have it error.
Matt Sodomsky
under review