Replaced "table lock" - it is not so good, it seems
This commit is contained in:
parent
2372ef7fd5
commit
1932a6d634
3 changed files with 8 additions and 12 deletions
4
boot.php
4
boot.php
|
|
@ -1089,8 +1089,6 @@ function proc_run($cmd) {
|
|||
$argv = $args;
|
||||
array_shift($argv);
|
||||
|
||||
dba::lock('workerqueue');
|
||||
|
||||
$parameters = json_encode($argv);
|
||||
$found = dba::select('workerqueue', array('id'), array('parameter' => $parameters), array('limit' => 1));
|
||||
|
||||
|
|
@ -1098,8 +1096,6 @@ function proc_run($cmd) {
|
|||
dba::insert('workerqueue', array('parameter' => $parameters, 'created' => $created, 'priority' => $priority));
|
||||
}
|
||||
|
||||
dba::unlock();
|
||||
|
||||
// Should we quit and wait for the poller to be called as a cronjob?
|
||||
if ($dont_fork) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue