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
Then we can use the @Cron decorator to register listeners to timed events:
@Injectable()exportclassTasksService{privatereadonlylogger=newLogger(TasksService.name);
@Cron('45 * * * * *')handleCron(){this.logger.debug('Called when the current second is 45');}}
The ScheduleModule can be totally made using Deno native features, like the Deno.Cron module
Other than that, I think the implementation should be fairly similar to the Events feature (#76)
Describe alternatives you've considered
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
As a Nest.JS developer, I'd like the possibility of running cron jobs using the framework decorators and module system.
References:
Describe the solution you'd like
I imagine something like this:
@Cron
decorator to register listeners to timed events:The
ScheduleModule
can be totally made using Deno native features, like the Deno.Cron moduleOther than that, I think the implementation should be fairly similar to the
Events
feature (#76)Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: