DiscordMediaLoader icon indicating copy to clipboard operation
DiscordMediaLoader copied to clipboard

New job scheduler

Open Serraniel opened this issue 6 years ago • 0 comments

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.

Serraniel avatar Feb 15 '19 16:02 Serraniel