mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-11 12:10:45 +08:00
fix(scheduler): isolate scheduled runs and @mention job creator on WhatsApp
Use a fresh execution session per run while keeping source_session_id for delivery only; filter bot JIDs and default scheduled @mentions to the job creator. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
f5cb64a3a4
commit
62ac04c40d
8 changed files with 524 additions and 166 deletions
|
|
@ -46,6 +46,7 @@ def enqueue_scheduled_job_run(
|
|||
store,
|
||||
job=job,
|
||||
created_by_user_id=str(getattr(job, "created_by_user_id", "") or ""),
|
||||
run_id=str(run.id),
|
||||
)
|
||||
except Exception as exc:
|
||||
store.scheduled_job_run_update(
|
||||
|
|
@ -95,6 +96,7 @@ def enqueue_scheduled_job_run(
|
|||
"trace_id": trace_id,
|
||||
"run_id": agent_run_id,
|
||||
"session_id": resolved.session_id,
|
||||
"source_session_id": str(resolved.source_session_id or getattr(job, "source_session_id", "") or ""),
|
||||
"tenant_id": tenant_id,
|
||||
"user_id": resolved.user_id,
|
||||
"viewer_username": viewer_username,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue