Skip to content

Commit 76b8df9

Browse files
committed
queue interface update
1 parent bac5bb4 commit 76b8df9

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/Interfaces/QueueInterface.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,28 @@
22

33
namespace Michalsn\CodeIgniterQueue\Interfaces;
44

5+
use Michalsn\CodeIgniterQueue\Entities\QueueJob;
6+
use Throwable;
7+
58
interface QueueInterface
69
{
710
public function push(string $queue, string $job, array $data);
811

912
public function pop(string $queue);
13+
14+
public function later(QueueJob $queueJob, int $seconds);
15+
16+
public function failed(QueueJob $queueJob, Throwable $err, bool $keepJob);
17+
18+
public function done(QueueJob $queueJob, bool $keepJob);
19+
20+
public function clear(?string $queue = null);
21+
22+
public function retry(?int $id, ?string $queue);
23+
24+
public function forget(int $id, bool $affectedRows = false);
25+
26+
public function flush(?int $hours, ?string $queue);
27+
28+
public function listFailed(?string $queue);
1029
}

0 commit comments

Comments
 (0)