Created
December 18, 2020 20:23
-
-
Save sergueyarellano/29ce29d98d88639c15b5f09f14608c64 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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