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

Function watchPaymentTask

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

Source from the content-addressed store, hash-verified

130}
131
132async function watchPaymentTask(taskId, onUpdate, maxWaitMs = 20 * 60 * 1000) {
133 return watchDomainTask(
134 () => api.get(`/payment/ops/tasks/${taskId}`, {
135 requestKey: `payment:task:${taskId}`,
136 cancelPrevious: true,
137 retry: 0,
138 timeoutMs: 30000,
139 silentNetworkError: true,
140 silentTimeoutError: true,
141 priority: 'low',
142 }),
143 onUpdate,
144 maxWaitMs,
145 { baseIntervalMs: 1200, maxIntervalMs: 12000 },
146 );
147}
148
149function replaceAccountRowStatus(accountId, nextStatus) {
150 const normalizedId = Number(accountId || 0);

Callers 1

Calls 2

watchDomainTaskFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected