feat: only use background job scheduling with inngest

This commit is contained in:
Ephraim Atta-Duncan
2025-05-04 00:55:27 +00:00
parent 1b1071778d
commit cc400495d4
3 changed files with 216 additions and 205 deletions

View File

@ -74,7 +74,8 @@ export class JobClient<T extends ReadonlyArray<JobDefinition> = []> {
};
try {
return await eligibleJob.handler({ payload, io });
const result = await eligibleJob.handler({ payload, io });
return result;
} catch (error) {
console.error(`Direct job execution failed for ${options.name}:`, error);
throw error;