dox_queue_database 3.2.1
dox_queue_database: ^3.2.1 copied to clipboard
The database driver for dox_queue: jobs, failed jobs and batches in your SQLite, Postgres or MySQL database, and afterCommit dispatch.
3.2.1 #
No changes.
3.2.0 #
- First version. It holds the database parts that moved out of dox_queue: the
databasequeue driver (DatabaseQueueDriverandDatabaseQueueDriverFactory, jobs injobs, failed jobs infailed_jobs), the batch store forQueue.batch()(DatabaseBatchRepository, tablejob_batches),OrmTransactionsfordispatch(afterCommit: true)andQueueConfig(afterCommit: true),QueueTables(up,down,upBatches,downBatches) and thedox queue:tablecommand.DatabaseQueueProviderturns on all three in each isolate: make your queue provider extend it in place ofQueueProvider.QueueDatabase.register()does the same for a custom setup with no providers. - Fix: with
afterCommit, a transaction on a named dox_orm connection no longer counts as open. Only a transaction of the default connection defers the job (it is the one the job waits for). QueueConfig(failedAtTimestamp: true)keepsfailed_jobs.failed_atas a timestamp column in UTC. See the README.