dox_queue 3.0.0-alpha.5
dox_queue: ^3.0.0-alpha.5 copied to clipboard
Background jobs for the Dox framework: Redis, database and sync drivers, retries, delays and workers.
3.0.0-alpha.5 #
- Works with ioredis 3.0.0, so it works with dox_core 3.0.0-alpha.16 and newer.
3.0.0-alpha.4 #
QueueProvider(was a DoxService): extend it in your app,shutdown()is optional.
3.0.0-alpha.3 #
- A job with no fields no longer gives an "unused variable" warning in
lib/generated/jobs.g.dart.
3.0.0-alpha.2 #
- The builder now writes the job registry to
lib/generated/jobs.g.dart. Import it from there.
3.0.0-alpha.1 #
- First version.
- Jobs:
@Job()andDoxJobwithtries,backoff,timeout,queueand afailed()hook. - A builder writes
lib/jobs.g.dart: it saves and loads the constructor parameters of each job, with no mirrors. dispatch(),dispatchSync()andQueue.dispatch()withdelayandqueue.- Drivers:
sync,database(Postgres, MySQL, MariaDB, SQLite) andredis. QueueServicesets up the queue in every isolate.workInProcessruns a worker in the web server.QueueWorkerforbin/queue.dart:work,failed,retry,forgetandflush.- Retries with backoff, failed jobs, timeouts, delayed jobs, crashed worker recovery and graceful stop.
QueueTablesmakes thejobsandfailed_jobstables.