ubccr / coldfront

HPC Resource Allocation System
https://coldfront.readthedocs.io
GNU General Public License v3.0
96 stars 76 forks source link

The Denied status of an allocation is the only status that sends a signal #474

Closed knikolla closed 1 year ago

knikolla commented 1 year ago

There is an allocation_disable signal, but it is only sent for the Denied status. https://github.com/ubccr/coldfront/blob/68ba4b62ea5e47cf2295dede1f3df13868ec4788/coldfront/core/allocation/views.py#L251

It should at least also be sent for the Revoked status, and perhaps some other relevant status.

The motivation is that it does seem a bit weird to "deny" an allocation that already exists, rather than "revoking" it.