Skip to content

v0.4.1

Latest

Choose a tag to compare

@AlexeyMatskevich AlexeyMatskevich released this 20 Jun 16:22

Fixed

  • list_queues() (the ListQueues admin trait) silently returned an empty stats list for any queue with no completed jobs: the per-queue AVG_JOB_DURATION_MINS aggregate is SQL NULL in that state, which serialized to a JSON null that cannot decode into apalis_core::Statistic, failing the whole Vec<Statistic> decode and dropping every stat for the queue. The queue_stats CTE now COALESCEs null stat values to "0", so a queue with jobs always reports its full stat set.

Changed

  • The unscoped lock_task no longer lists "or in another queue" in its TaskNotFound hint: that entry point does not filter by job_type, so a task in another queue is locked rather than reported missing. lock_task_in_queue keeps the queue-aware hint.

Documentation

  • Every public Result-returning function now carries an # Errors section.
  • MIGRATIONS and the schema module are documented; the crate enables #![warn(missing_docs)] and #![warn(rustdoc::broken_intra_doc_links)].
  • README links to examples/* and CONTRIBUTING.md are now absolute GitHub URLs (relative links 404 on docs.rs); added an MSRV note (Rust 1.88).
  • Cargo.toml gained [package.metadata.docs.rs] so docs.rs documents the ntex path alongside tokio.
  • CONTRIBUTING.md no longer lists --no-default-features check/test commands (building without a runtime feature is an intentional compile_error!).

Full changelog: v0.4.0...v0.4.1