You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Potentially already somewhat supported through node, but even if that is the case we should support this in a more Nest native way. One idea could be to add a custom decorator that expands the functionality of the existing @Cron decorator to call the sentry cron logic.
In theory, we could also patch the @Cron nest decorator directly to add this logic. We would have to add an extra parameter so that users can provide a MonitorConfig and the slug.
Solution: Add a new @SentryCron decorator that converts the function to a sentry node cron job.
nicohrubec
changed the title
Add automatic cron monitoring support - https://docs.nestjs.com/techniques/task-scheduling
Add automatic cron monitoring support to NestJS
Jul 4, 2024
https://docs.nestjs.com/techniques/task-scheduling
Potentially already somewhat supported through node, but even if that is the case we should support this in a more Nest native way. One idea could be to add a custom decorator that expands the functionality of the existing
@Cron
decorator to call the sentry cron logic.In theory, we could also patch the
@Cron
nest decorator directly to add this logic. We would have to add an extra parameter so that users can provide a MonitorConfig and the slug.Solution: Add a new
@SentryCron
decorator that converts the function to a sentry node cron job.Useful links:
The text was updated successfully, but these errors were encountered: