Push scheduled-job failure summaries to WhatsApp and clarify pending access.

Enqueue a short English failure notice on job crashes, default scheduler lang to en, and tell unauthorized users their request id is pending admin YES.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-08-10 22:59:40 +08:00
parent d3f621b58b
commit 4646170743
6 changed files with 186 additions and 9 deletions

View file

@ -76,7 +76,7 @@ def enqueue_scheduled_job_run(
trace_id = uuid.uuid4().hex
agent_run_id = uuid.uuid4().hex
prompt_text = str(getattr(job, "prompt_text", "") or "").strip()
lang = str(getattr(job, "lang", "") or "zh")
lang = str(getattr(job, "lang", "") or "en")
recipe = load_recipe_from_job(job)
playbook = recipe_has_playbook(recipe)
user_text = build_scheduled_turn_instruction(