mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
Add delete protection from certain objects
Certain objects can be sensitive to being deleted while jobs are running, this protects those objects
This commit is contained in:
@@ -39,6 +39,7 @@ __all__ = ['UnifiedJobTemplate', 'UnifiedJob']
|
||||
logger = logging.getLogger('awx.main.models.unified_jobs')
|
||||
|
||||
CAN_CANCEL = ('new', 'pending', 'waiting', 'running')
|
||||
ACTIVE_STATES = CAN_CANCEL
|
||||
|
||||
|
||||
class UnifiedJobTemplate(PolymorphicModel, CommonModelNameNotUnique, NotificationFieldsModel):
|
||||
|
||||
Reference in New Issue
Block a user