api.worker.scripts

Runs a registered script (api/scripts/) as a Celery task, and records the result.

Around each run: one run at a time per record_id (a lock), a live “current stage” for the app, the result in the run history, and the snapshot a scheduled script compares the next run with.

Attributes

Functions

run_script(self, script_name, **kwargs) → dict[str, Any]

Module Contents

api.worker.scripts.logger
api.worker.scripts.REQUEUE_MAX_RETRIES = 120
api.worker.scripts.run_script(self: celery.Task, script_name: str, **kwargs: Any) → dict[str, Any]