| @@ 148-155 (lines=8) @@ | ||
| 145 | /** |
|
| 146 | * @return RedirectResponse |
|
| 147 | */ |
|
| 148 | public function retryFailedAction() |
|
| 149 | { |
|
| 150 | $count = $this->getResque()->retryFailedJobs(); |
|
| 151 | ||
| 152 | $this->addFlash('info', 'Retry '.$count.' failed jobs.'); |
|
| 153 | ||
| 154 | return $this->redirectToRoute('ResqueBundle_homepage'); |
|
| 155 | } |
|
| 156 | ||
| 157 | /** |
|
| 158 | * @return RedirectResponse |
|
| @@ 160-167 (lines=8) @@ | ||
| 157 | /** |
|
| 158 | * @return RedirectResponse |
|
| 159 | */ |
|
| 160 | public function clearFailedAction() |
|
| 161 | { |
|
| 162 | $count = $this->getResque()->clearFailedJobs(); |
|
| 163 | ||
| 164 | $this->addFlash('info', 'Clear '.$count.' failed jobs.'); |
|
| 165 | ||
| 166 | return $this->redirectToRoute('ResqueBundle_homepage'); |
|
| 167 | } |
|
| 168 | } |
|
| 169 | ||