From d9a890572497fe47b133bd5ad429889ed593dce8 Mon Sep 17 00:00:00 2001 From: Jan Koppe Date: Wed, 29 Apr 2020 22:32:55 +0200 Subject: [PATCH] fix weird issue with params --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) mode change 100644 => 100755 main.py diff --git a/main.py b/main.py old mode 100644 new mode 100755 index cd8f9e7..f0836aa --- a/main.py +++ b/main.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python import os import signal import sys @@ -122,7 +123,7 @@ def claim_task(uuid): svd_update() -def loop(config): +def loop(): global claims while True: # portier heartbeat @@ -161,7 +162,7 @@ def main(): signal.signal(signal.SIGTERM, sigterm_handler) # check connection to supervisord - loop({}) + loop() main()