Repository navigation
Conversation
Codecov Report❌ Patch coverage is
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
|
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
|
@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. |
I've left some comments in the #82 ticket regarding this, there are some behavioral Qs to answer before we commit to anything. |
We had partially transitioned to UUIDs in v0.25, this completes the work and adds a regression test and closes #84. Also adds some Executor utilities to the public API for getting and iterating the current job pool.
…g test in the test_scale regression catcher.
…pports cancellation.
…mance of two slow tests.
…efix we found along the way.
UUID-Everywhere
…, which tanstack-virtual blocks)
…auses sphinx to parse a typing annotation as if it was an external link.
…ls panel includes diagnostic details.
… while reducing WAL writes for a typical workload by ~60%.
…the original PR)
…) might have already processed the job before the test gets to it.
…r documentation screenshots and CI/CD
…s artifacts, so the documentation is always current.
|
👏 |
|
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. |

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:
🚨
QueuedJob.idis now auuid.UUIDrather than a string. Update code thatcompares job IDs with strings or requires string values.
✨ Improvements
light/dark themes.
workflows.
easy to identify overloaded periods.
to debug and identify pain points (like using
push()in a loop instead ofa single
push_many()).retry workflows, etc...
for docker/containers (Best way to do containerised healthchecks on workers #54).
clearer units and sample times. Charts now show gaps for missing observations.
Metrics API responses now include the requested range and a
seriesmapping.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.
installations retaining extensive workflow history. Apply workflow migrations
before restarting workers; the migration temporarily blocks workflow writes.
than using Chancy directly.
Executor.supportsandExecutor.get_capabilities(), such as time out and memory limit support.on_jobs_updated_in_transaction. Existing per-job hooks still run after commit.Jobs must periodically call
QueuedJob.checkpoint()to observe the timeout.Executor.get_function_and_kwargs()is now a classmethod used by everybuilt-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).
with
Cron.schedule(..., timezone=ZoneInfo("Europe/Paris")), including adefined 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).
Worker.flush()to save pending job updates without stopping the worker.retry backoff.
mutations, and keep unresolved jobs selected.
form accessibility, and warnings for unsaved queue edits.
🐛 Fixes
workflow durations. Metric retention now follows elapsed time.
observations during graceful shutdown.
job's result.
usable next run cannot keep searching indefinitely.
are marked failed instead of crashing the workflow scheduler.
multiple times in different batches of the same run.
wait_for_jobs()could wait forever if a job was purged and no timeout wasprovided.
extend the leadership of the previous leader, causing duplicate work for 1
cycle.
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).
pending and running jobs were excluded. It now only prunes succeeded and
failed jobs.
max_workflows_per_runinstead of stopping at100 workflows, and revisits older workflows even under sustained activity.
waiting for the next poll.
worker's backoff settings and resumes recovery polling after reconnection.
pending job updates before shutdown.
workflows from appearing complete prematurely.
default. Explicitly empty tags still leave a queue unassigned.
overlapping executions, or interrupt another job.
different table prefixes.
Starlette releases.
declare()andsync_declare()returning queue states as stringsinstead of
Queue.Statevalues.