MCPcopy Create free account
hub / github.com/Noumena-Network/code / ackWork

Function ackWork

src/bridge/bridgeMain.ts:849–862  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

847 // Ack failures are non-fatal: server re-delivers, and existingHandle
848 // / completedWorkIds paths handle the dedup.
849 const ackWork = async (): Promise<void> => {
850 logForDebugging(`[bridge:work] Acknowledging workId=${work.id}`)
851 try {
852 await api.acknowledgeWork(
853 environmentId,
854 work.id,
855 secret.session_ingress_token,
856 )
857 } catch (err) {
858 logForDebugging(
859 `[bridge:work] Acknowledge failed workId=${work.id}: ${errorMessage(err)}`,
860 )
861 }
862 }
863
864 const workType: string = work.data.type
865 switch (work.data.type) {

Callers 1

runBridgeLoopFunction · 0.85

Calls 2

logForDebuggingFunction · 0.50
errorMessageFunction · 0.50

Tested by

no test coverage detected