Skip to content

Commit

Permalink
Check for expired jobs when listing to prevent errors
Browse files Browse the repository at this point in the history
  • Loading branch information
peter4431 committed Jan 3, 2024
1 parent d45778b commit 0b6823a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rq_dashboard/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def get_queue_registry_jobs_count(queue_name, registry_name, offset, per_page):

job_ids = current_queue.get_job_ids(offset, per_page)
current_queue_jobs = [queue.fetch_job(job_id) for job_id in job_ids]
jobs = [serialize_job(job) for job in current_queue_jobs]
jobs = [serialize_job(job) for job in current_queue_jobs if job]

return (total_items, jobs)

Expand Down

0 comments on commit 0b6823a

Please sign in to comment.