Cscott has uploaded a new change for review.

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

Change subject: Fix GC of failed jobs.
......................................................................

Fix GC of failed jobs.

Change-Id: I9961fbf388343ffe7a0fcee84e37dbab337ab2a8
---
M lib/threads/gc.js
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Collection/OfflineContentGenerator
 refs/changes/17/177117/1

diff --git a/lib/threads/gc.js b/lib/threads/gc.js
index 411ab0d..5896e07 100644
--- a/lib/threads/gc.js
+++ b/lib/threads/gc.js
@@ -141,7 +141,7 @@
                { channel: 'gc' }
        );
        return cleanJobStatusObjects(function( job ) {
-               if ( job.status === 'failed' && ( job.timestamp < fjl ) ) {
+               if ( job.state === 'failed' && ( job.timestamp < fjl ) ) {
                        clearedFailedJobs += 1;
                        return true; // delete this job
                } else if ( job.timestamp < ajl ) {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9961fbf388343ffe7a0fcee84e37dbab337ab2a8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Collection/OfflineContentGenerator
Gerrit-Branch: master
Gerrit-Owner: Cscott <[email protected]>

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

Reply via email to