mirror of
https://github.com/ansible/awx.git
synced 2026-03-05 10:41:05 -03:30
block deletion of resources w unprocessed events
This commit is contained in:
@@ -457,8 +457,11 @@ class RelatedJobsMixin(object):
|
||||
Returns a list of active jobs (i.e. running) associated with the calling
|
||||
resource (self). Expected to return a QuerySet
|
||||
'''
|
||||
def _get_related_jobs(self):
|
||||
return self.objects.none()
|
||||
|
||||
def _get_active_jobs(self):
|
||||
return []
|
||||
return self._get_related_jobs().filter(status__in=('new', 'pending', 'waiting', 'running'))
|
||||
|
||||
'''
|
||||
Returns [{'id': '1', 'type': 'job'}, {'id': 2, 'type': 'project_update'}, ...]
|
||||
|
||||
Reference in New Issue
Block a user