(prompt: string)
| 69 | // transcript. This is acceptable since normal mode is not the |
| 70 | // primary use case for scheduled tasks. |
| 71 | const enqueueForLead = (prompt: string) => |
| 72 | enqueuePendingNotification({ |
| 73 | value: prompt, |
| 74 | mode: 'prompt', |
| 75 | priority: 'later', |
| 76 | isMeta: true, |
| 77 | // Threaded through to cc_workload= in the billing-header |
| 78 | // attribution block so the API can serve cron-initiated requests |
| 79 | // at lower QoS when capacity is tight. No human is actively |
| 80 | // waiting on this response. |
| 81 | workload: WORKLOAD_CRON, |
| 82 | }) |
| 83 | |
| 84 | const scheduler = createCronScheduler({ |
| 85 | // Missed-task surfacing (onFire fallback). Teammate crons are always |
no test coverage detected