SciPaperLoader/tools/diagnostics/inspect_tasks.py
2025-05-24 12:39:23 +02:00

12 lines
281 B
Python
Executable File

#!/usr/bin/env python3
"""
Inspect current Celery tasks (active, reserved, and scheduled)
"""
from scipaperloader.celery import celery
i = celery.control.inspect()
print("Active tasks:", i.active())
print("Reserved tasks:", i.reserved())
print("Scheduled tasks:", i.scheduled())