Skip to content

[V5] Cron Job #2033

Answered by ruanitto
remidosol asked this question in Help
Dec 11, 2020 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

For automatic execution, I am calling the service execution as soon as the application is ready within providers/AppProvider.ts

  public async ready() {
    // App is ready
    const scheduler = this.app.container.use('Adonis/Addons/Scheduler')
    scheduler.run()
  }

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@remidosol
Comment options

@ErnaniR
Comment options

@pixelpaulaus
Comment options

@ruanitto
Comment options

Answer selected by remidosol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants