Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
68a65b0
)
Merge branch 'MDL-66927-run-new-adhoc' of https://github.com/brendanheywood/moodle
author
Jun Pataleta
<jun@moodle.com>
Thu, 24 Oct 2019 05:45:27 +0000
(13:45 +0800)
committer
Jun Pataleta
<jun@moodle.com>
Thu, 24 Oct 2019 05:45:27 +0000
(13:45 +0800)
lib/cronlib.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/cronlib.php
b/lib/cronlib.php
index
8de7602
..
c735ac2
100644
(file)
--- a/
lib/cronlib.php
+++ b/
lib/cronlib.php
@@
-151,7
+151,7
@@
function cron_run_adhoc_tasks(int $timenow) {
// Run all adhoc tasks.
while (!\core\task\manager::static_caches_cleared_since($timenow) &&
- $task = \core\task\manager::get_next_adhoc_task(
$timenow
)) {
+ $task = \core\task\manager::get_next_adhoc_task(
time()
)) {
cron_run_inner_adhoc_task($task);
unset($task);