()
| 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) { |
no test coverage detected