| @@ 173-180 (lines=8) @@ | ||
| 170 | /** |
|
| 171 | * @return RedirectResponse |
|
| 172 | */ |
|
| 173 | public function retryFailedAction() |
|
| 174 | { |
|
| 175 | $count = $this->getResque()->retryFailedJobs(); |
|
| 176 | ||
| 177 | $this->addFlash('info', 'Retry '.$count.' failed jobs.'); |
|
| 178 | ||
| 179 | return $this->redirectToRoute('ResqueBundle_homepage'); |
|
| 180 | } |
|
| 181 | ||
| 182 | /** |
|
| 183 | * @return RedirectResponse |
|
| @@ 185-192 (lines=8) @@ | ||
| 182 | /** |
|
| 183 | * @return RedirectResponse |
|
| 184 | */ |
|
| 185 | public function retryClearFailedAction() |
|
| 186 | { |
|
| 187 | $count = $this->getResque()->retryFailedJobs(true); |
|
| 188 | ||
| 189 | $this->addFlash('info', 'Retry and clear '.$count.' failed jobs.'); |
|
| 190 | ||
| 191 | return $this->redirectToRoute('ResqueBundle_homepage'); |
|
| 192 | } |
|
| 193 | ||
| 194 | /** |
|
| 195 | * @return RedirectResponse |
|
| @@ 197-204 (lines=8) @@ | ||
| 194 | /** |
|
| 195 | * @return RedirectResponse |
|
| 196 | */ |
|
| 197 | public function clearFailedAction() |
|
| 198 | { |
|
| 199 | $count = $this->getResque()->clearFailedJobs(); |
|
| 200 | ||
| 201 | $this->addFlash('info', 'Clear '.$count.' failed jobs.'); |
|
| 202 | ||
| 203 | return $this->redirectToRoute('ResqueBundle_homepage'); |
|
| 204 | } |
|
| 205 | } |
|
| 206 | ||