I was thinking this morning about how it might be sort of nice to have some sort of functionality in the plugin to reset the active limit counts for all of the associations without having to unload and reload the plugin. This could be a sort of "break glass in case of emergency" type functionality offered by the plugin, but probably not needed to be used very often at all. It could work something like:
- An RPC gets issued to the plugin that signals that all of the active limit counts (current running/active jobs, current resources) should be reset for all associations.
- The plugin iterates through all of the associations and sets all of the active limit counts to
0.
You would probably need to be very careful here though, because if there are active/running jobs when this is executed, and the plugin does not check that the current counts are > 0, it could potentially reduce the count to negative numbers and mess them up.
I haven't fully fleshed this idea out yet, but just jotting down some quick thoughts. Will need to do some experimenting here.
I was thinking this morning about how it might be sort of nice to have some sort of functionality in the plugin to reset the active limit counts for all of the associations without having to unload and reload the plugin. This could be a sort of "break glass in case of emergency" type functionality offered by the plugin, but probably not needed to be used very often at all. It could work something like:
0.You would probably need to be very careful here though, because if there are active/running jobs when this is executed, and the plugin does not check that the current counts are > 0, it could potentially reduce the count to negative numbers and mess them up.
I haven't fully fleshed this idea out yet, but just jotting down some quick thoughts. Will need to do some experimenting here.