jobs - fix jobs in Swarm mode

This commit is contained in:
bunkerity
2021-06-07 09:48:50 +02:00
parent fcc6b3b5e4
commit 9442e59141
8 changed files with 73 additions and 59 deletions

View File

@@ -39,8 +39,7 @@ except docker.errors.APIError as e :
sys.exit(3)
# Process them before events
with lock :
autoconf.pre_process(before)
autoconf.pre_process(before)
# Process events received from Docker
try :
@@ -65,8 +64,7 @@ try :
continue
# Process the event
with lock :
autoconf.process(server, event["Action"])
autoconf.process(server, event["Action"])
except docker.errors.APIError as e :
utils.log("[!] Docker API error " + str(e))