Skip to content

plugin: reset active limit counts for associations with an RPC? #599

@cmoussa1

Description

@cmoussa1

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:

  1. 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.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ideaan idea for a new feature or change

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions