Skip to content

Commit

Permalink
Set status line
Browse files Browse the repository at this point in the history
  • Loading branch information
droberts2013 committed Jun 22, 2023
1 parent a911480 commit cf90e77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/ansibletower/launchAndWait.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,5 @@ def formatted_print(message):

formatted_print(">>> %s launched with job id %s" % (message_text.capitalize(), str(job_id)))

task.setStatusLine("Job id %s launched" % job_id)
task.schedule("ansibletower/launchAndWait.wait_for_completion.py", int(wait_interval))
1 change: 1 addition & 0 deletions src/ansibletower/launchAndWait.wait_for_completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def formatted_print(message):
result = json.loads(response.response)
status=result['status']
print status
task.setStatusLine("Job id %s %s" % (job_id, status))
if status in ["running","pending","waiting"]:
num_tries += 1
if max_retries:
Expand Down

0 comments on commit cf90e77

Please sign in to comment.