Skip to content

Instantly share code, notes, and snippets.

@sergueyarellano
Created December 18, 2020 20:23
Show Gist options
  • Save sergueyarellano/29ce29d98d88639c15b5f09f14608c64 to your computer and use it in GitHub Desktop.
Save sergueyarellano/29ce29d98d88639c15b5f09f14608c64 to your computer and use it in GitHub Desktop.
for await (const reminders of retryQuery()) {
await eventBridge.putEvents({
// Limit of ten entries
Entries: [{
EventBusName: `main`,
Source: 'cron.query',
DetailType: 'QUERIED REMINDERS',
Detail: JSON.stringify(reminders)
}]
}).promise().catch(console.error)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment