Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Model/Table/QueuedJobsTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Cake\Core\Plugin;
use Cake\Event\EventInterface;
use Cake\Http\Exception\NotImplementedException;
use Cake\I18n\DateTime;
use Cake\I18n\FrozenTime;
use Cake\ORM\Query;
use Cake\ORM\Table;
Expand Down Expand Up @@ -521,7 +522,7 @@
$constraintJobs = array_keys($costConstraints + $uniqueConstraints);
$runningJobs = $this->find('queued')
->contain(['WorkerProcesses'])
->where(['QueuedJobs.job_task IN' => $constraintJobs, 'QueuedJobs.workerkey IS NOT' => null, 'QueuedJobs.workerkey !=' => $this->_key, 'WorkerProcesses.modified >' => Config::defaultworkertimeout()])
->where(['QueuedJobs.job_task IN' => $constraintJobs, 'QueuedJobs.workerkey IS NOT' => null, 'QueuedJobs.workerkey !=' => $this->_key, 'WorkerProcesses.modified >' => (new DateTime())->subSeconds(Config::defaultworkertimeout())])

Check failure on line 525 in src/Model/Table/QueuedJobsTable.php

View workflow job for this annotation

GitHub Actions / Coding Standard & Static Analysis

Instantiated class Cake\I18n\DateTime not found.

Check failure on line 525 in src/Model/Table/QueuedJobsTable.php

View workflow job for this annotation

GitHub Actions / Coding Standard & Static Analysis

Call to method subSeconds() on an unknown class Cake\I18n\DateTime.
->all()
->toArray();
}
Expand Down
Loading