Skip to content

Commit

Permalink
run jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
alfred2g committed Dec 13, 2023
1 parent d655ea2 commit 8d4d114
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions servicetests/tests/JobsExecution/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,6 @@ def on_update_job_execution_rejected(rejected):
keep_alive_secs=30,
http_proxy_options=proxy_options)

if not cmdData.input_is_ci:
print(f"Connecting to {cmdData.input_endpoint} with client ID '{cmdData.input_clientId}'...")
else:
print("Connecting to endpoint with client ID")

connected_future = mqtt_connection.connect()
Expand Down Expand Up @@ -311,22 +308,6 @@ def on_update_job_execution_rejected(rejected):
except Exception as e:
exit(e)

# Wait until we get a response. If we do not get a response after 50 tries, then abort
got_job_response_tries = 0
while (locked_data.got_job_response == False):
got_job_response_tries += 1
if (got_job_response_tries > 50):
exit("Got job response timeout exceeded")
sys.exit(-1)
time.sleep(0.2)

if (len(available_jobs) > 0):
print("At least one job queued in CI! No further work to do. Exiting sample...")
sys.exit(0)
else:
print("ERROR: No jobs queued in CI! At least one job should be queued!")
sys.exit(-1)

try:
# Subscribe to necessary topics.
# Note that is **is** important to wait for "accepted/rejected" subscriptions
Expand Down

0 comments on commit 8d4d114

Please sign in to comment.