Created
March 20, 2015 15:03
-
-
Save matthewpoer/51187c8cb11bb4a2c851 to your computer and use it in GitHub Desktop.
Show the number of job_queue records in various status for each name/type of job
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+----------+---------+--------------------------------------+ | |
| count(*) | status | name | | |
+----------+---------+--------------------------------------+ | |
| 12708 | done | tcx_job_account_set_teams | | |
| 84856 | queued | tcx_job_account_set_teams | | |
| 10 | running | tcx_job_account_set_teams | | |
| 12688 | queued | tcx_job_account_trigger_team_changes | | |
+----------+---------+--------------------------------------+ | |
4 rows in set (0.74 sec) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select count(*), status, name from job_queue group by name, status; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment