Bulk operation stucks - Does not show up and cant be canceled

mypromo
Shopify Partner
1 0 0
Installing a new developed app, play around and trigger some syncs via bulk api.
Remove the app, install again, play around... do that a few times...
It can happen that you suddenly cant sent new bulk operations after re-installing same app again... 
 
Sample

 

[{"message":"A bulk mutation operation for this app and shop is already in progress: gid:\/\/shopify\/BulkOperation\/2023612940454.","field":null}]

 

 

When query for it, it says:

 

mutation bulkOperationCancel($id: ID! ) {
  bulkOperationCancel(id: $id) {
    bulkOperation {
        id
    }
    userErrors {
      field
      message
    }
  }
}

 

 

 

{
    "id": "gid://shopify/BulkOperation/2023612940454"
}

 

 

 

{
    "data": {
        "bulkOperationCancel": {
            "bulkOperation": null,
            "userErrors": [
                {
                    "field": [
                        "id"
                    ],
                    "message": "Bulk operation does not exist"
                }
            ]
        }
    },
    "extensions": {
        "cost": {
            "requestedQueryCost": 10,
            "actualQueryCost": 10,
            "throttleStatus": {
                "maximumAvailable": 1000.0,
                "currentlyAvailable": 990,
                "restoreRate": 50.0
            }
        }
    }
}

 

 

I assume the bulk operation is assigned to a previous installation of the same app and should be canceled / deleted after removing the app.

Replies 0 (0)