12 lines
281 B
Python
Executable File
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())
|