moo.sdk.tasks

Task execution and scheduling functions.

Functions

cancel_scheduled_task(pk)

Delete a django_celery_beat.PeriodicTask row by primary key.

get_scheduled_task_info(pk)

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

invoke(*args[, verb, callback, delay, ...])

Asynchronously execute a Verb, optionally returning the result to another Verb.

moo_eval(code_string)

Evaluate arbitrary Python code in the RestrictedPython sandbox.

schedule_continuation(remaining_items, verb)

Schedule a continuation task carrying the PKs of remaining_items and notify the current player.

set_task_perms(who)

Set the task permissions to those of who for the duration of the with-block.

task_time_low([threshold])

Return True if the current task's remaining time is at or below threshold seconds.