Yuvipanda has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/201268

Change subject: tools: Make webservice2 support Restarted webservice jobs
......................................................................

tools: Make webservice2 support Restarted webservice jobs

If they were restarted with qmod -rj at some point, they will
specify Rr instead of r as state. Count that as 'running'.

Bug: T93334
Change-Id: Iafd2c48d821bac15a55d1aa9a63f9c4d1e68aba0
---
M modules/toollabs/files/webservice2
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/68/201268/1

diff --git a/modules/toollabs/files/webservice2 
b/modules/toollabs/files/webservice2
index 1e20d28..7a277a5 100644
--- a/modules/toollabs/files/webservice2
+++ b/modules/toollabs/files/webservice2
@@ -96,7 +96,7 @@
     while True:
         job = get_job_xml(job_name)
         state = job.findtext('.//state') if job is not None else None
-        if job is None or state != 'r':
+        if job is None or 'r' not in state:
             sys.stdout.write('.')
             sys.stdout.flush()
             time.sleep(1)

-- 
To view, visit https://gerrit.wikimedia.org/r/201268
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iafd2c48d821bac15a55d1aa9a63f9c4d1e68aba0
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Yuvipanda <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to