diff options
Diffstat (limited to 'python/task_runner.py')
| -rw-r--r-- | python/task_runner.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/task_runner.py b/python/task_runner.py index ad2fb817..f54807d7 100644 --- a/python/task_runner.py +++ b/python/task_runner.py @@ -14,15 +14,15 @@ def run(): while True: rpc = Rpc.from_json(q.blpop("tasks")[1].decode("utf-8")) - print("Running '{}' with {}".format(rpc.fun, rpc.args)) + print(f"Running '{rpc.fun}' with {rpc.args}") if rpc.fun == "generate_scenarios": rpc.args += [ET] try: rpc() except CalledProcessError: - print("'{}' did not complete".format(rpc.fun)) + print(f"'{rpc.fun}' did not complete") else: - print("'{}' completed".format(rpc.fun)) + print(f"'{rpc.fun}' completed") if rpc.fun == "build_portfolios": q.rpush("tasks", str(Rpc("build_scenarios", rpc.args))) if rpc.fun == "build_scenarios": |
