mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
Simplify job execution by removing error handling and using await for function calls in WorkersFeatureSet
This commit is contained in:
parent
0480e47c23
commit
a49ca14fde
@ -122,10 +122,7 @@ const WorkersFeatureSet: FeatureSet = {
|
||||
// const timeoutInMs: number = JobDictionary.getTimeoutInMs(name);
|
||||
|
||||
if (funcToRun) {
|
||||
funcToRun().catch((err: Error) => {
|
||||
logger.error("Error running job: " + name);
|
||||
logger.error(err);
|
||||
});
|
||||
await funcToRun();
|
||||
}
|
||||
},
|
||||
{ concurrency: 100 },
|
||||
|
Loading…
Reference in New Issue
Block a user