Skip to content

Help. How to add/remove cron jobs dynamically #181

Closed Answered by aleksul
superjcvd asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, unfortunately due to a way Repid schedules messages, and the fact that currently there is a unified ABC for all message brokers, there is no native way to delete/stop a job.
You can make it work by either

  • adding some logic to your actor to prevent next scheduling
  • or by directly interacting with your broker (e.g. redis) and removing the message from there

I wanted to look into it in #108 but I hadn't had the time and as far as lib development goes I'm mostly focusing on AsyncAPI integration.

Replies: 1 comment 4 replies

Comment options

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

@superjcvd
Comment options

@aleksul
Comment options

@superjcvd
Comment options

Answer selected by aleksul
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants