A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
I have a store with two custom apps both running a cron job, import products and read all.
I see on the documentations: "Apps are limited to single bulk operation at a time per store".
"You can run only one bulk operation of each type (...) at a time per shop."
https://shopify.dev/docs/api/usage/bulk-operations/queries
is there a risk if the app steals Bulk operations from each other? if running cron time overlaps?
Thank you
Solved! Go to the solution
This is an accepted solution.
Hi @DanubioBlu 👋
Each app would run their bulk mutation on the same store without issue.
Hope that helps!
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Any news ? is it clear the problem? thanks
Hey @DanubioBlu - this is a great question. If an app tries to run two bulk operations concurrently it would most likely result in an error with the second bulk operation being unable to begin if the first one is still processing. What you could do, is build in a basic queue system that causes sequential bulk operation jobs to trigger after the first one is complete. In the dev docs you shared, there's a section on using webhooks or polling to check when a job is done and this would be the method we'd recommend to control sequential bulk operation jobs.
Hope this helps - let us know if we can clarify anything on our end.
Al | Shopify Developer Support
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
My question is different , if two different APP try to run a Bulk Mutation on the same Store, what happend?
This is an accepted solution.
Hi @DanubioBlu 👋
Each app would run their bulk mutation on the same store without issue.
Hope that helps!
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog