{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/24171","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/24171/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/24171/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/24171/events","html_url":"https://github.com/laravel/framework/pull/24171","id":321832675,"number":24171,"title":"[5.7] Improve the retry jobs command","user":{"login":"djug","id":1019873,"avatar_url":"https://avatars0.githubusercontent.com/u/1019873?v=4","gravatar_id":"","url":"https://api.github.com/users/djug","html_url":"https://github.com/djug","followers_url":"https://api.github.com/users/djug/followers","following_url":"https://api.github.com/users/djug/following{/other_user}","gists_url":"https://api.github.com/users/djug/gists{/gist_id}","starred_url":"https://api.github.com/users/djug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djug/subscriptions","organizations_url":"https://api.github.com/users/djug/orgs","repos_url":"https://api.github.com/users/djug/repos","events_url":"https://api.github.com/users/djug/events{/privacy}","received_events_url":"https://api.github.com/users/djug/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-05-10T07:09:51Z","updated_at":"2018-05-14T21:05:36Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/laravel/framework/pulls/24171","html_url":"https://github.com/laravel/framework/pull/24171","diff_url":"https://github.com/laravel/framework/pull/24171.diff","patch_url":"https://github.com/laravel/framework/pull/24171.patch"},"body":"this PR is for improving the retry jobs command\r\n\r\nthe goal is to be able to retry jobs with more flexibility/filters\r\n\r\nfor instance, it would be possible to retry all the failed jobs that belong to a certain queue, or all the failed jobs that failed before/after a specific date/id, and it will be also possible to combine multiple filters at once\r\n\r\nExamples:\r\n- retry all failed jobs after a specific date:\r\n`php artisan queue:retry --failed_at_from=\"2018-05-09 17:21:20\"`\r\n\r\n- retry all failed jobs before a specific date:\r\n`php artisan queue:retry --failed_at_to=\"2018-05-09 17:30:00\"`\r\n\r\n- retry all failed jobs between an interval:\r\n`php artisan queue:retry --failed_at_from=\"2018-05-09 17:21:20\" --failed_at_to=\"2018-05-09 17:30:00\"`\r\n- retry all failed jobs that belongs to a specific queue:\r\n`php artisan queue:retry --queue=jobs`\r\n\r\n- retry all failed jobs that belongs to a specific queue and that failed after a specific date:\r\n`php artisan queue:retry --queue=jobs  --failed_at_from=\"2018-05-09 17:21:20\"`\r\n\r\n- retry all failed jobs with an ID >= 40:\r\n`php artisan queue:retry --id_from=40`\r\n\r\n![image](https://user-images.githubusercontent.com/1019873/39832735-ef8afa92-53bf-11e8-9c30-e59dff17e482.png)\r\n\r\n![image](https://user-images.githubusercontent.com/1019873/39832756-feccb810-53bf-11e8-87cd-86cf25ba9694.png)\r\n"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/388962587","html_url":"https://github.com/laravel/framework/pull/24171#issuecomment-388962587","issue_url":"https://api.github.com/repos/laravel/framework/issues/24171","id":388962587,"user":{"login":"djug","id":1019873,"avatar_url":"https://avatars0.githubusercontent.com/u/1019873?v=4","gravatar_id":"","url":"https://api.github.com/users/djug","html_url":"https://github.com/djug","followers_url":"https://api.github.com/users/djug/followers","following_url":"https://api.github.com/users/djug/following{/other_user}","gists_url":"https://api.github.com/users/djug/gists{/gist_id}","starred_url":"https://api.github.com/users/djug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djug/subscriptions","organizations_url":"https://api.github.com/users/djug/orgs","repos_url":"https://api.github.com/users/djug/repos","events_url":"https://api.github.com/users/djug/events{/privacy}","received_events_url":"https://api.github.com/users/djug/received_events","type":"User","site_admin":false},"created_at":"2018-05-14T21:05:36Z","updated_at":"2018-05-14T21:05:36Z","author_association":"NONE","body":"@sisve you are right\r\n\r\nI added `getFiltrationOptions` to `FailedJobProviderInterface` (and to `NullFailedJobProvider`)\r\n\r\nfor the dynamic signature, I'm still thinking of a good way to achieve this that could be reusable somewhere else (either directly into the `command` class or as a trait).\r\n\r\n"}}
{"actor":{"display_login":"djug"}}