Skip to content

Commit

Permalink
Autoformat syntax with black (#642)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <berendt@osism.tech>
  • Loading branch information
berendt authored Oct 26, 2023
1 parent 447629d commit 7e2f940
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 1 addition & 3 deletions osism/commands/wait.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,7 @@ def take_action(self, parsed_args):
last_id = 0
while_True = True
while while_True:
data = redis.xread(
{str(task_id): last_id}, count=1, block=1000
)
data = redis.xread({str(task_id): last_id}, count=1, block=1000)
if data:
messages = data[0]
for message_id, message in messages[1]:
Expand Down
9 changes: 8 additions & 1 deletion osism/tasks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,14 @@ def celery_init_worker(**kwargs):


def run_ansible_in_environment(
request_id, worker, environment, role, arguments, publish=True, locking=True, auto_release_time=3600
request_id,
worker,
environment,
role,
arguments,
publish=True,
locking=True,
auto_release_time=3600,
):
result = ""

Expand Down

0 comments on commit 7e2f940

Please sign in to comment.