Skip to content

Commit

Permalink
Do not test invocation strategy by cloudflare.
Browse files Browse the repository at this point in the history
  • Loading branch information
tirthbodawala committed Dec 31, 2024
1 parent 62e2488 commit d70ed8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/worker/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@ export default {
});
},

/* istanbul ignore next: Cannot test Queue invocation */
// async queue( batch: MessageBatch, env: Environment, ctx: ExecutionContext)
async queue(batch): Promise<void> {
let messages = JSON.stringify(batch.messages);
console.log(`Consumed from our queue: ${messages}`);
batch.ackAll();
},
/* istanbul ignore next: Cannot test scheduled invocation */
// scheduled(event: ScheduledEvent, env: Environment, ctx: ExecutionContext)
async scheduled(event, env, ctx) {
// Pass a promise
Expand Down

0 comments on commit d70ed8c

Please sign in to comment.