Skip to content

Commit

Permalink
[backend] Bring back error log for timeout extending resources
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-julien committed Feb 26, 2025
1 parent 11732f7 commit cb45ebb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions opencti-platform/opencti-graphql/src/database/redis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ export const lockResource = async (resources: Array<string>, opts: LockOptions =
lock = await lock.extend(maxTtl);
queue();
} catch (error) {
logApp.error('Execution timeout, error extending resources', { locks });
if (process.send) {
// If process.send, we use a child process
process.send({ operation: opts.child_operation, type: 'abort', success: false });
Expand Down

0 comments on commit cb45ebb

Please sign in to comment.