#!/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())