Skip to content

v0.26.0 - Major Release (UX and polish focused) - #58

Merged
TkTech merged 97 commits into
mainfrom
26_ux
Oct 14, 2026
Merged

TkTech merged 97 commits into
mainfrom
26_ux

Conversation

@TkTech

@TkTech TkTech commented Oct 28, 2025 •

Copy link
Copy Markdown
Owner

0.26.0

🚨 This release requires that you run migrations, as it adds new columns for
atomic job claims, improves metric collection by significantly reducing WAL
writes, and much more. This release will erase existing stored metrics, as the
format has changed significantly. Stop your workers and use chancy.migrate()
or use the CLI:

chancy --app <your app> misc migrate

🚨 QueuedJob.id is now a uuid.UUID rather than a string. Update code that
compares job IDs with strings or requires string values.

✨ Improvements

  • Reworked the dashboard, much more informative for operational insights,
    light/dark themes.
  • Added much, much better composable filtering widgets to both jobs and
    workflows.
  • Added a visualization of your upcoming (and past) cron schedule, making it
    easy to identify overloaded periods.
  • Added a realtime view of the internal Chancy communication traffic, helping
    to debug and identify pain points (like using push() in a loop instead of
    a single push_many()).
  • HTTP API now supports mutation - create queues on the fly, move jobs around,
    retry workflows, etc...
  • HTTP API is now stable, with documentation still a work in progress.
  • HTTP API now includes an unauthenticated endpoint for health checks, meant
    for docker/containers (Best way to do containerised healthchecks on workers #54).
  • Added dozens of new metrics, including metrics on workflows.
  • Added selectable metric time ranges, consistent dashboard summaries, and
    clearer units and sample times. Charts now show gaps for missing observations.
    Metrics API responses now include the requested range and a series mapping.
  • The API and dashboard can now be mounted in existing Starlette or FastAPI
    applications. Asset URLs, navigation, API requests, and WebSockets follow
    the mount automatically, including nested mounts and ASGI proxy prefixes
    (@jklaise, Feature request: Expose Starlette API app so it can be mounted onto an existing FastAPI/ASGI app #64, Expose dashboard as a mountable starlette app #76). Saved authentication tokens are now scoped to each API
    URL; existing dashboard sessions will need to sign in again.
  • Improved scheduling performance for large workflows, busy workers, and
    installations retaining extensive workflow history. Apply workflow migrations
    before restarting workers; the migration temporarily blocks workflow writes.
  • Can now be used as a django-tasks backend, albeit with less functionality
    than using Chancy directly.
  • Executors now declare their capabilities with Executor.supports and
    Executor.get_capabilities(), such as time out and memory limit support.
  • Plugins can add database work to job-update transactions through
    on_jobs_updated_in_transaction. Existing per-job hooks still run after commit.
  • Threaded and sub-interpreter executors now support cooperative timeouts.
    Jobs must periodically call QueuedJob.checkpoint() to observe the timeout.
  • Executor.get_function_and_kwargs() is now a classmethod used by every
    built-in executor, so subclasses can override it to inject their own keyword
    arguments into jobs (@PaulM5406, Make Executor.get_function_and_kwargs the overridable resolution hook. #46).
  • The cron plugin can now evaluate each schedule in a timezone other than UTC
    with Cron.schedule(..., timezone=ZoneInfo("Europe/Paris")), including a
    defined behaviour around daylight saving time transitions that follows
    Vixie and Debian cron. UTC remains the default. This adds a cron migration,
    so run migrations after upgrading (@luca-montaigut).
  • Added Worker.flush() to save pending job updates without stopping the worker.
  • Workers now recover from transient database failures with configurable
    retry backoff.
  • Added dashboard and API pagination for job and workflow histories.
  • Bulk job actions now report per-job outcomes, refresh results after
    mutations, and keep unresolved jobs selected.
  • Improved dialog keyboard navigation, focus handling, responsive layouts,
    form accessibility, and warnings for unsaved queue edits.

🐛 Fixes

  • Fixed inaccurate metric averages, stale table-size readings, and incorrect
    workflow durations. Metric retention now follows elapsed time.
  • Metrics now preserve history when worker IDs are reused and save recent
    observations during graceful shutdown.
  • Fixed a race where an abandoned execution could overwrite a recovered
    job's result.
  • Bound cron searches across rejected DST occurrences so schedules with no
    usable next run cannot keep searching indefinitely.
  • Empty workflow submissions are now rejected. Existing active empty workflows
    are marked failed instead of crashing the workflow scheduler.
  • Respect CLI flags for API plugin configuration by @alfawal (Respect CLI flags for API plugin configuration #68).
  • Fixed an issue that allowed the reprioritize plugin to update the same job
    multiple times in different batches of the same run.
  • wait_for_jobs() could wait forever if a job was purged and no timeout was
    provided.
  • Fixed a very rare split-brain issue where a worker becoming the leader could
    extend the leadership of the previous leader, causing duplicate work for 1
    cycle.
  • Pushing jobs with unique keys and the worker's batched job updates now lock
    rows in the same order, fixing a deadlock between overlapping pushes and
    updates that could fail either side (@AudeCstg, Possible conflict between Chancy._push_job_sql and Worker._maintain_updates #89).
  • The pruner could delete jobs that were waiting to be retried, since only
    pending and running jobs were excluded. It now only prunes succeeded and
    failed jobs.
  • Workflow polling now honors max_workflows_per_run instead of stopping at
    100 workflows, and revisits older workflows even under sustained activity.
  • Workflows now advance promptly when steps finish on other workers, without
    waiting for the next poll.
  • The workflow scheduler now retries transient database failures using the
    worker's backoff settings and resumes recovery polling after reconnection.
  • Fixed worker shutdown hangs during database failures and improved saving
    pending job updates before shutdown.
  • Fixed job pagination returning duplicate results or skipping jobs.
  • Workflow progress now includes steps waiting on dependencies, preventing
    workflows from appearing complete prematurely.
  • Queues created through the API or dashboard now match all workers by
    default. Explicitly empty tags still leave a queue unassigned.
  • Fixed cancellation races that could overwrite cancelled results, miss
    overlapping executions, or interrupt another job.
  • Fixed conflicts between Chancy installations sharing a database with
    different table prefixes.
  • Fixed cross-origin dashboard connections and compatibility with current
    Starlette releases.
  • Fixed declare() and sync_declare() returning queue states as strings
    instead of Queue.State values.
  • Fixed JSON serialization of sets and frozensets.
image image image image image

@codecov

codecov Bot commented Oct 28, 2025 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 85.95565% with 266 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.84%. Comparing base (0cb14b1) to head (61cb20d).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
chancy/plugins/api/core.py 65.75% 88 Missing ⚠️
chancy/worker.py 90.04% 24 Missing ⚠️
chancy/executors/process.py 80.17% 23 Missing ⚠️
chancy/plugins/debug.py 0.00% 19 Missing ⚠️
chancy/contrib/django/task_wrapper.py 46.42% 15 Missing ⚠️
chancy/plugins/metrics/metrics.py 95.22% 15 Missing ⚠️
chancy/cli/worker.py 0.00% 11 Missing ⚠️
chancy/plugins/api/auth.py 65.62% 11 Missing ⚠️
chancy/app.py 90.38% 10 Missing ⚠️
chancy/contrib/django/auth.py 0.00% 10 Missing ⚠️
... and 15 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #58      +/-   ##
==========================================
+ Coverage   73.19%   82.84%   +9.65%     
==========================================
  Files          58       69      +11     
  Lines        3193     4104     +911     
==========================================
+ Hits         2337     3400    +1063     
+ Misses        856      704     -152     
Flag Coverage Δ
unittests 82.84% <85.95%> (+9.65%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@TkTech TkTech changed the title v0.26.0 - Major Release v0.26.0 - Major Release (UX and polish focused) Oct 29, 2025
@TkTech

TkTech commented Nov 29, 2025

Copy link
Copy Markdown
Owner Author

Added a cron job visualizer.

image

API plugin settings (host, port, debug, allow_origin) are now overridden if the corresponding CLI flags are explicitly provided, even when an Api instance is defined outside the default behaviour.
@fcortes

fcortes commented Dec 17, 2025

Copy link
Copy Markdown

Hi! I saw that you mentioned django-tasks compatibility on this PR but couldn't find any reference about it on the code. Do you mind committing those changes or maybe open a new PR with it (to avoid getting this one so large). I was playing around with chancy and also have a semi-functional implementation and it would be nice to see how you managed some issues I've been encountering.

Great project btw!

Respect CLI flags for API plugin configuration
@phillycheeze

Copy link
Copy Markdown

@TkTech We just started leveraging chancy and super excited for this new dashboard! Any outstanding items you're looking for help with?

@TkTech

TkTech commented Jan 28, 2026

Copy link
Copy Markdown
Owner Author

@TkTech We just started leveraging chancy and super excited for this new dashboard! Any outstanding items you're looking for help with?

It's been running for testing in a production environment since Monday, so I'd say we'll release this weekend if all goes well.

@TkTech

TkTech commented Jan 29, 2026

Copy link
Copy Markdown
Owner Author

Hi! I saw that you mentioned django-tasks compatibility on this PR but couldn't find any reference about it on the code. Do you mind committing those changes or maybe open a new PR with it (to avoid getting this one so large). I was playing around with chancy and also have a semi-functional implementation and it would be nice to see how you managed some issues I've been encountering.

Great project btw!

I've left some comments in the #82 ticket regarding this, there are some behavioral Qs to answer before we commit to anything.

TkTech added 17 commits October 8, 2026 00:24
…auses sphinx to parse a typing annotation as if it was an external link.
… while reducing WAL writes for a typical workload by ~60%.
@TkTech
TkTech merged commit 73fd582 into main Oct 14, 2026
26 checks passed
@TkTech
TkTech deleted the 26_ux branch October 14, 2026 10:34
@TkTech
TkTech restored the 26_ux branch October 14, 2026 10:41
@homeworkprod

Copy link
Copy Markdown

👏

@luca-montaigut

Copy link
Copy Markdown
Contributor

Congrats on the release, and thanks a lot @TkTech !

With 0.26, everything we needed is upstream, so we can drop our fork and go back to the official release. Thanks for reviewing our PRs so patiently, and for the huge amount of work in this one. The new dashboard is great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants