Add error logging for pending run creation
This commit is contained in:
@@ -390,15 +390,19 @@ class RunService:
|
|||||||
task = render_effect.delay(input_list[0], recipe, output_name)
|
task = render_effect.delay(input_list[0], recipe, output_name)
|
||||||
|
|
||||||
# Store pending run in database for durability
|
# Store pending run in database for durability
|
||||||
await self.db.create_pending_run(
|
try:
|
||||||
run_id=run_id,
|
await self.db.create_pending_run(
|
||||||
celery_task_id=task.id,
|
run_id=run_id,
|
||||||
recipe=recipe,
|
celery_task_id=task.id,
|
||||||
inputs=input_list,
|
recipe=recipe,
|
||||||
actor_id=actor_id,
|
inputs=input_list,
|
||||||
dag_json=dag_json,
|
actor_id=actor_id,
|
||||||
output_name=output_name,
|
dag_json=dag_json,
|
||||||
)
|
output_name=output_name,
|
||||||
|
)
|
||||||
|
except Exception as e:
|
||||||
|
import logging
|
||||||
|
logging.getLogger(__name__).error(f"Failed to save pending run: {e}")
|
||||||
|
|
||||||
# Also store in Redis for backwards compatibility (shorter TTL)
|
# Also store in Redis for backwards compatibility (shorter TTL)
|
||||||
task_data = json.dumps({
|
task_data = json.dumps({
|
||||||
|
|||||||
Reference in New Issue
Block a user