Mobrovac has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/378078 )

Change subject: [Config] Annotate the job event with pipeline property.
......................................................................


[Config] Annotate the job event with pipeline property.

To be able to log and debug the old vs new JobQueue jobs
we can add a 'pipeline' property to the event and set it
to EventBus in the new pipeline. That way we can log all
the event executions and compare the correctness side-by-side.

Change-Id: Iff96056f592eb41542512f7b02a0b83f81b78120
---
M scap/templates/config.yaml.j2
1 file changed, 9 insertions(+), 1 deletion(-)

Approvals:
  Mobrovac: Verified; Looks good to me, approved



diff --git a/scap/templates/config.yaml.j2 b/scap/templates/config.yaml.j2
index 057746e..94004ac 100644
--- a/scap/templates/config.yaml.j2
+++ b/scap/templates/config.yaml.j2
@@ -40,7 +40,15 @@
                   uri: '<%= jobrunner_uri %>'
                   headers:
                     content-type: 'application/json'
-                  body: '{{globals.message}}'
+                  # Temporary so that we could add a 'pipeline' property to 
the params.
+                  body:
+                    database: '{{message.database}}'
+                    meta: '{{message.meta}}'
+                    page_namespace: '{{message.page_namespace}}'
+                    page_title: '{{message.page_title}}'
+                    params: '{{merge(message.params, {"pipeline": 
"EventBus"})}}'
+                    sha1: '{{message.sha1}}'
+                    type: '{{message.type}}'
 
 
 # Number of worker processes to spawn.

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Iff96056f592eb41542512f7b02a0b83f81b78120
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/services/change-propagation/jobqueue-deploy
Gerrit-Branch: master
Gerrit-Owner: Ppchelko <ppche...@wikimedia.org>
Gerrit-Reviewer: GWicke <gwi...@wikimedia.org>
Gerrit-Reviewer: Mobrovac <mobro...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to