If Autoplan gets stuck in an "IN PROGRESS" state, you can manually update the job status to unblock future Autoplan runs.
To avoid this issue, we recommend running Autoplan with a reasonable scope. Planning for an entire year’s worth of product can put excessive strain on the system. Instead, plan for just this quarter’s demand or a smaller subset.
To change the status of the Autoplan job you can follow the bellow sequence of queries:
1. Find the etag of the Autoplan job in question. We'll then use this etag to help us update the job status.
{
mrpJob(id: <INSERT ID>) {
_etag
id
}
}
Run the following query and input variables in GraphQL to update the status.
mutation updateMRP($input:UpdateMRPJobInput!) {
updateMrpJob(input:$input){
mrpJob {
id
}
}
}
#INPUT VARIABLES TO BE PLACES IN QUERY VARIABLES SECTION
{
"input": {
"id": <INSERT ID>,
"status": "<INSERT DESIRED STATUS, LIKELY "FAILED">",
"etag": "<INSERT ETAG FROM QUERY RESULTS IN STEP ONE>"
}
}
Completing this sequence of queries in GraphQL will allow you to update the status of any Autoplan job should it be stuck "IN PROGRESS".