api.worker.scripts ================== .. py:module:: api.worker.scripts .. autoapi-nested-parse:: 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 ---------- .. autoapisummary:: api.worker.scripts.logger api.worker.scripts.REQUEUE_MAX_RETRIES Functions --------- .. autoapisummary:: api.worker.scripts.run_script Module Contents --------------- .. py:data:: logger .. py:data:: REQUEUE_MAX_RETRIES :value: 120 .. py:function:: run_script(self: celery.Task, script_name: str, **kwargs: Any) -> dict[str, Any]