I’m planning to develop a feature using bulkOperationRunMutation. According to the documentation (Bulk import data with the GraphQL Admin API), there’s a limitation that says: “You can run only one bulk operation of each type (bulkOperationRunMutation or bulkOperationRunQuery) at a time per shop.”
Does this limitation apply per app, or does it mean only one bulk operation can run at a time across all apps for the same shop?
Which of the following is correct?
If App A is running a bulkOperationRunMutation on a store (status is RUNNING), then App B cannot start a new bulkOperationRunMutation.
Even if App A has a bulkOperationRunMutation running, App B can still run its own bulkOperationRunMutation as long as it hasn’t started one yet.
From this Shopify forum discussion, it seems that an app cannot check the bulk operation status initiated by a different app. If that’s true, then option 2 seems more likely—otherwise, error handling would be very difficult.
I’m new to this board, and since my account was pending approval, I actually contacted Shopify Support about the same issue in parallel.
==
Here is the response I received: (just copy and past as I received)
もしアプリAがストアでbulkOperationRunMutationを実行中(ステータスがRUNNING)である場合、アプリBは新しいbulkOperationRunMutationを開始することができません。
Here’s the Google-translated version of the response:
If app A has a bulkOperationRunMutation running in its store (status RUNNING), app B cannot initiate a new bulkOperationRunMutation.
This is because Shopify has a limit of only allowing one bulk operation per store at a time; if one app is running a bulk operation, the other apps cannot start a new bulk operation until the first operation is complete.
==
According to your answer, this response from Shopify Support seems to be incorrect—
which would actually be good news for me, since currentBulkOperation only lets me check the state of the operation in my own app.