GitHub user adietrich-ussignal closed a discussion: Is readyForShutdown 
predicated on existence of pendings jobs?

When initiating a `cancelShutdown`, I was attempting to validate the success of 
the command based on `readyforshutdown`. I noticed however that 
`readyforshutdown` remains `true`, but I also see that the `pendingjobscount` 
for this particular server is `0`. 

Is the `readyforshutdown` value predicated on the `pendingjobscount`, or should 
it be tied to whether `prepareForShutdown` is initiated? 

Here is the flow of operations for reference: 
```
> prepare forshutdown managementserverid=0b2faa01-706f-4f37-82ff-3e5e8f0971f8
{
  "prepareforshutdown": {
    "managementserverid": 1,
    "pendingjobscount": 0,
    "readyforshutdown": true,
    "shutdowntriggered": true
  }
}
> cancel shutdown managementserverid=0b2faa01-706f-4f37-82ff-3e5e8f0971f8
{
  "cancelshutdown": {
    "managementserverid": 1,
    "pendingjobscount": 0,
    "readyforshutdown": true,
    "shutdowntriggered": false
  }
}
> ready forshutdown managementserverid=0b2faa01-706f-4f37-82ff-3e5e8f0971f8
{
  "readyforshutdown": {
    "managementserverid": 1,
    "pendingjobscount": 0,
    "readyforshutdown": true,
    "shutdowntriggered": false
  }
}
```

GitHub link: https://github.com/apache/cloudstack/discussions/10682

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscr...@cloudstack.apache.org

Reply via email to