shigoto_dashboard (shigoto v1.9.10)
View SourceDashboard queries for Shigoto. Provides statistics and search functions for building admin UIs, monitoring dashboards, and Nova Liveboard pages.
Queue Statistics
shigoto_dashboard:queue_stats() ->
[#{queue => <<\"default\">>, available => 42, executing => 5,
retryable => 2, completed => 1000, discarded => 3}]Job Search
shigoto_dashboard:search_jobs(#{worker => my_worker, state => failed, limit => 20})
Summary
Functions
Get batch statistics.
Get global job counts by state.
Get per-queue job counts grouped by state.
Get the most recent failed jobs.
Search jobs with filters. Supports: worker, queue, state, tags, limit, offset.
Get jobs stuck in executing state (potential zombies).
Get per-worker job counts and average execution stats.
Functions
Get batch statistics.
Get global job counts by state.
Get per-queue job counts grouped by state.
-spec recent_failures(pos_integer()) -> {ok, [map()]} | {error, term()}.
Get the most recent failed jobs.
Search jobs with filters. Supports: worker, queue, state, tags, limit, offset.
Get jobs stuck in executing state (potential zombies).
Get per-worker job counts and average execution stats.