Skip to content

Commit

Permalink
feat: mark as transient event (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbystedt authored Mar 19, 2024
1 parent 266d7b4 commit 3813d8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cron/backup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ async function backupUsingBroker(
await brokerService.open({
event: {
provider: 'nr-objectstore-rotate-backup',
reason: 'Cron triggered',
reason: `Cron triggered for ${BROKER_SERVICE}`,
transient: true,
},
actions: [
{
Expand Down Expand Up @@ -220,6 +221,7 @@ async function computeHash(filepath: string) {
// Connect the output of the `input` stream to the input of `hash`
// and let Node.js do the streaming
await stream.pipeline(input, hash);
input.close();

return hash.digest('hex');
}

0 comments on commit 3813d8a

Please sign in to comment.