Skip to content

Commit

Permalink
Increase the timeout of diagnoser job completion to 180 sec (#5136)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirireddy12 committed Jul 20, 2022
1 parent 8cfca65 commit 845c87a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/connectedk8s/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Release History
===============
1.2.11
++++++

* Increased the timeout of diagnoser job completion to 180 seconds

1.2.10
++++++

Expand Down
2 changes: 1 addition & 1 deletion src/connectedk8s/azext_connectedk8s/_troubleshootutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ def executing_diagnoser_job(corev1_api_instance, batchv1_api_instance, filepath_
is_job_complete = False
is_job_scheduled = False
# To watch for changes in the pods states till it reach completed state or exit if it takes more than 60 seconds
for event in w.stream(batchv1_api_instance.list_namespaced_job, namespace='azure-arc', label_selector="", timeout_seconds=60):
for event in w.stream(batchv1_api_instance.list_namespaced_job, namespace='azure-arc', label_selector="", timeout_seconds=180):
try:
# Checking if job get scheduled or not
if event["object"].metadata.name == "azure-arc-diagnoser-job":
Expand Down
2 changes: 1 addition & 1 deletion src/connectedk8s/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# TODO: Confirm this is the right version number you want and it matches your
# HISTORY.rst entry.

VERSION = '1.2.10'
VERSION = '1.2.11'

# The full list of classifiers is available at
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
Expand Down

0 comments on commit 845c87a

Please sign in to comment.