https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e90b3f6
)
Bugfix: The provided worker priority had been ignored
author
Michael
<heluecht@pirati.ca>
Tue, 13 Feb 2018 02:26:35 +0000
(
02:26
+0000)
committer
Michael
<heluecht@pirati.ca>
Tue, 13 Feb 2018 02:26:35 +0000
(
02:26
+0000)
src/Core/Worker.php
patch
|
blob
|
history
diff --git
a/src/Core/Worker.php
b/src/Core/Worker.php
index
e8a1f2e
..
140d0e0
100644
(file)
--- a/
src/Core/Worker.php
+++ b/
src/Core/Worker.php
@@
-1018,6
+1018,8
@@
class Worker
$dont_fork = Config::get("system", "worker_dont_fork");
$created = DateTimeFormat::utcNow();
+ $run_parameter = array_shift($args);
+
if (is_int($run_parameter)) {
$priority = $run_parameter;
} elseif (is_array($run_parameter)) {
@@
-1032,8
+1034,6
@@
class Worker
}
}
- array_shift($args);
-
$parameters = json_encode($args);
$found = dba::exists('workerqueue', ['parameter' => $parameters, 'done' => false]);