mirror of
https://github.com/ansible/awx.git
synced 2026-05-14 12:57:40 -02:30
Add setting for keeping container group pod after job run
Helpful for debugging
This commit is contained in:
@@ -3010,7 +3010,7 @@ class AWXReceptorJob:
|
||||
return self._run_internal(receptor_ctl)
|
||||
finally:
|
||||
# Make sure to always release the work unit if we established it
|
||||
if self.unit_id is not None:
|
||||
if self.unit_id is not None and not settings.AWX_CONTAINER_GROUP_KEEP_POD:
|
||||
receptor_ctl.simple_command(f"work release {self.unit_id}")
|
||||
|
||||
def _run_internal(self, receptor_ctl):
|
||||
|
||||
Reference in New Issue
Block a user