1 | <?php |
||
12 | class QueuedTaskRepository extends EntityRepository |
||
13 | { |
||
14 | /** |
||
15 | * @param string $name |
||
16 | * @param \DateTime $executeAt |
||
17 | * @return QueuedTaskInterface |
||
18 | */ |
||
19 | public function getByNameAndExecuteAt($name, \DateTime $executeAt) |
||
30 | |||
31 | /** |
||
32 | * @param string $name |
||
33 | * @return QueuedTaskInterface |
||
34 | */ |
||
35 | public function getByNameAndExecuteAtBeforeNow($name) |
||
47 | |||
48 | /** |
||
49 | * @param int $limit |
||
50 | * @return QueuedTaskInterface[] |
||
51 | */ |
||
52 | public function findQueued($limit) |
||
65 | |||
66 | /** |
||
67 | * @param string $name |
||
68 | * @return bool |
||
69 | */ |
||
70 | public function isRunning($name) |
||
74 | |||
75 | /** |
||
76 | * @param string $name |
||
77 | * @return bool |
||
78 | */ |
||
79 | public function isQueued($name) |
||
83 | |||
84 | /** |
||
85 | * @param string $name |
||
86 | * @param string $status |
||
87 | * @return bool |
||
88 | */ |
||
89 | private function isStatus($name, $status) |
||
107 | } |
||
108 |