()
| 835 | // Ack failures are non-fatal: server re-delivers, and existingHandle |
| 836 | // / completedWorkIds paths handle the dedup. |
| 837 | const ackWork = async (): Promise<void> => { |
| 838 | logForDebugging(`[bridge:work] Acknowledging workId=${work.id}`) |
| 839 | try { |
| 840 | await api.acknowledgeWork( |
| 841 | environmentId, |
| 842 | work.id, |
| 843 | secret.session_ingress_token, |
| 844 | ) |
| 845 | } catch (err) { |
| 846 | logForDebugging( |
| 847 | `[bridge:work] Acknowledge failed workId=${work.id}: ${errorMessage(err)}`, |
| 848 | ) |
| 849 | } |
| 850 | } |
| 851 | |
| 852 | const workType: string = work.data.type |
| 853 | switch (work.data.type) { |
no test coverage detected