New job scheduler #27

Open
opened 2019-02-15 17:21:38 +01:00 by Serraniel · 0 comments
Serraniel commented 2019-02-15 17:21:38 +01:00 (Migrated from github.com)

To optimize scanning there will be a new implemenation of the jobs and the scheduler. Instead of continously looping all jobs all the time each job will get states:

  • idle -> do nothing
  • scanning -> scan from latest known message to newest message
  • listening -> listening to new messages only

Each job will start in idle after the app has been started or if the job has been added just recently. The scheduler will set them in scanning mode. If they have finished they are set to listening mode until the app is shutting down.

To optimize scanning there will be a new implemenation of the jobs and the scheduler. Instead of continously looping all jobs all the time each job will get states: * idle -> do nothing * scanning -> scan from latest known message to newest message * listening -> listening to new messages only Each job will start in *idle* after the app has been started or if the job has been added just recently. The scheduler will set them in scanning mode. If they have finished they are set to listening mode until the app is shutting down.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Serraniel/DiscordMediaLoader#27
No description provided.