This commit is contained in:
2026-09-11 14:35:22 -04:00
parent aba185d80a
commit cc182f2ef1
10 changed files with 86 additions and 17 deletions
+4
View File
@@ -0,0 +1,4 @@
export async function runIsolatedJob(scheduler, task, { lane = 'background', onError } = {}) {
try { return await scheduler.run(task, { lane }); }
catch (error) { onError?.(error); return { ok: false, unavailable: error.message, isolated: true }; }
}