blob: 862d0c43cee1d77bbee944405e717deaaba3e24f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
<?php
namespace Wallabag\ImportBundle\Consumer;
use Simpleue\Job\Job;
class RedisEntryConsumer extends AbstractConsumer implements Job
{
/**
* Handle one message by one message.
*
* @param string $job Content of the message (directly from Redis)
*
* @return bool
*/
public function manage($job)
{
return $this->handleMessage($job);
}
/**
* Should tell if the given job will kill the worker.
* We don't want to stop it :).
*
* @param string $job Content of the message (directly from Redis)
*
* @return false
*/
public function isStopJob($job)
{
return false;
}
/**
* This abstract method is only used when we use one queue for multiple job type.
* We don't do that, so we'll always return true.
*
* @param string $job Content of the message (directly from Redis)
*
* @return true
*/
public function isMyJob($job)
{
return true;
}
}
|