MCPcopy
hub / github.com/codeaashu/claude-code / enqueueForLead

Function enqueueForLead

src/hooks/useScheduledTasks.ts:71–82  ·  view source on GitHub ↗
(prompt: string)

Source from the content-addressed store, hash-verified

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

Callers 1

useScheduledTasksFunction · 0.85

Calls 1

Tested by

no test coverage detected