* Move jobs to wait state (for retrying). * * @param string $state Source state * @param int $count Number of jobs to move * @param int $timestamp Timestamp filter * @return int Cursor position */
(string $state, int $count, int $timestamp)
| 480 | * @return int Cursor position |
| 481 | */ |
| 482 | public function moveJobsToWait(string $state, int $count, int $timestamp): int |
| 483 | { |
| 484 | $keys = $this->getKeys(['', 'events', $state, 'wait', 'paused', 'meta', 'active', 'marker']); |
| 485 | $args = [$count, $timestamp, $state]; |
| 486 | |
| 487 | $result = $this->execScript('moveJobsToWait-8.lua', $keys, $args); |
| 488 | |
| 489 | return (int) $result; |
| 490 | } |
| 491 | |
| 492 | /** |
| 493 | * Remove a job. |
no test coverage detected