Mwalker has submitted this change and it was merged.

Change subject: Can now report status of bundler
......................................................................


Can now report status of bundler

Change-Id: Ie7126e0ca4c8a232f7686a3de28c8007daff4c9d
---
M lib/backend.js
1 file changed, 7 insertions(+), 1 deletion(-)

Approvals:
  Mwalker: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/lib/backend.js b/lib/backend.js
index bed5683..febdd2d 100644
--- a/lib/backend.js
+++ b/lib/backend.js
@@ -158,7 +158,13 @@
                getNewItemFromQueue();
        });
        child.on('message', function(message, handle) {
-               console.info('Received message from child! %s', message);
+               try {
+                       var msgObj = JSON.parse(message);
+                       jd.updateBundling(jobDetails, msgObj.file, 
msgObj.status, msgObj.percent);
+                       redisClient.hset(config.get('redis:status_set_name'), 
jobDetails.collectionId, JSON.stringify(jobDetails));
+               } catch (err) {
+                       // Pass
+               }
        });
        child.on('exit', function(code, signal) {
                console.info('Bundler child exited with: %s', code);

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie7126e0ca4c8a232f7686a3de28c8007daff4c9d
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Collection/OfflineContentGenerator
Gerrit-Branch: master
Gerrit-Owner: Mwalker <mwal...@wikimedia.org>
Gerrit-Reviewer: Mwalker <mwal...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to