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
Noneif noPeriodicTaskexists with the given pk (useful for orphan-pointer detection on daemon Objects).- Parameters:
pk (
int) – thePeriodicTask.pkto inspect- Return type:
dict|None- Returns:
dict with
enabled,last_run_at,total_run_count,interval_seconds(orNone), andtask(the Celery task name) — orNoneif not found.- Raises:
UserError – if the current caller is not a wizard