dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Don't check namespace in SpecialWantedtemplates"
[lhc/web/wiklou.git]
/
includes
/
jobqueue
/
Job.php
diff --git
a/includes/jobqueue/Job.php
b/includes/jobqueue/Job.php
index
f7ef8a9
..
3e23391
100644
(file)
--- a/
includes/jobqueue/Job.php
+++ b/
includes/jobqueue/Job.php
@@
-144,6
+144,14
@@
abstract class Job implements IJobSpecification {
: null;
}
: null;
}
+ /**
+ * @return int|null UNIX timestamp of when the job was runnable, or null
+ * @since 1.26
+ */
+ public function getReadyTimestamp() {
+ return $this->getReleaseTimestamp() ?: $this->getQueuedTimestamp();
+ }
+
/**
* Whether the queue should reject insertion of this job if a duplicate exists
*
/**
* Whether the queue should reject insertion of this job if a duplicate exists
*