mirror of
https://github.com/ansible/awx.git
synced 2026-01-10 15:32:07 -03:30
When deleting a job sometimes we get this error
For the silent delete method, we should let this one slide because it is an expected error that may occur if there are still events processing.
This commit is contained in:
parent
7e74f823f4
commit
908291dd3c
@ -25,6 +25,11 @@ class Base(Page):
|
||||
return self.delete()
|
||||
except (exc.NoContent, exc.NotFound, exc.Forbidden):
|
||||
pass
|
||||
except exc.BadRequest as e:
|
||||
if 'Job has not finished processing events' in e.msg:
|
||||
pass
|
||||
else:
|
||||
raise e
|
||||
|
||||
def get_object_role(self, role, by_name=False):
|
||||
"""Lookup and return a related object role by its role field or name.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user