moo.sdk.tasks.get_scheduled_task_info

moo.sdk.tasks.get_scheduled_task_info(pk)

Look up runtime stats for a scheduled task created by invoke().

Returns None if no PeriodicTask exists with the given pk (useful for orphan-pointer detection on daemon Objects).

Parameters:

pk (int) – the PeriodicTask.pk to inspect

Return type:

dict | None

Returns:

dict with enabled, last_run_at, total_run_count, interval_seconds (or None), and task (the Celery task name) — or None if not found.

Raises:

UserError – if the current caller is not a wizard