Aaron Schulz has uploaded a new change for review.
https://gerrit.wikimedia.org/r/56317
Change subject: [JobQueue] Ignore job release timestamps for de-duplication.
......................................................................
[JobQueue] Ignore job release timestamps for de-duplication.
Change-Id: I5d2a0b325eee7230450d7623e1dbcef1f8e681b9
---
M includes/job/Job.php
1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/17/56317/1
diff --git a/includes/job/Job.php b/includes/job/Job.php
index d8f55c3..e12bc950 100644
--- a/includes/job/Job.php
+++ b/includes/job/Job.php
@@ -212,10 +212,12 @@
'title' => $this->getTitle()->getDBkey(),
'params' => $this->getParams()
);
- // Identical jobs with different "root" jobs should count as
duplicates
if ( is_array( $info['params'] ) ) {
+ // Identical jobs with different "root" jobs should
count as duplicates
unset( $info['params']['rootJobSignature'] );
unset( $info['params']['rootJobTimestamp'] );
+ // Likewise for jobs with different delay times
+ unset( $info['params']['jobReleaseTimestamp'] );
}
return $info;
}
--
To view, visit https://gerrit.wikimedia.org/r/56317
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5d2a0b325eee7230450d7623e1dbcef1f8e681b9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits