MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / watchAccountTask

Function watchAccountTask

static/js/accounts.js:115–130  ·  view source on GitHub ↗
(taskId, onUpdate, maxWaitMs = 20 * 60 * 1000)

Source from the content-addressed store, hash-verified

113}
114
115async function watchAccountTask(taskId, onUpdate, maxWaitMs = 20 * 60 * 1000) {
116 return watchDomainTask(
117 () => api.get(`/accounts/tasks/${taskId}`, {
118 requestKey: `accounts:task:${taskId}`,
119 cancelPrevious: true,
120 retry: 0,
121 timeoutMs: 30000,
122 silentNetworkError: true,
123 silentTimeoutError: true,
124 priority: 'low',
125 }),
126 onUpdate,
127 maxWaitMs,
128 { baseIntervalMs: 1200, maxIntervalMs: 12000 },
129 );
130}
131
132async function watchPaymentTask(taskId, onUpdate, maxWaitMs = 20 * 60 * 1000) {
133 return watchDomainTask(

Callers 3

runBatchRefreshTaskFunction · 0.85
runBatchValidateTaskFunction · 0.85
runOverviewRefreshTaskFunction · 0.85

Calls 2

watchDomainTaskFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected