Releases: Shopify/maintenance_tasks
Releases · Shopify/maintenance_tasks
Maintenance Tasks v1.8.2
What's Changed
- Don't re-enqueue stopped throttled jobs by @etiennebarrie in #583
Full Changelog: v1.8.1...v1.8.2
Maintenance Tasks v1.8.1
What's Changed
- Remove direct reference to MaintenanceTasks::Run in
#truncate
method by @adrianna-chang-shopify in #581
Full Changelog: v1.8.0...v1.8.1
Maintenance Tasks v1.8.0
This release introduces a new API for tasks that do not need to iterate over a collection
. See instructions in the README to learn more about using tasks that only need to perform a unit of work once.
What's Changed
- Truncate the error message when message is too long by @joelpinheiro in #494
- Support Tasks that perform a single iteration by @adrianna-chang-shopify in #570
New Contributors
- @joelpinheiro made their first contribution in #494
Full Changelog: v1.7.0...v1.8.0
Maintenance Tasks v1.7.0
This release brings optimistic locking to the gem to handle race conditions. In order to opt into optimistic locking, you'll need to run the necessary migration to add a lock_version
column to your maintenance_tasks_runs
table. See instructions in the README to learn more about copying gem migrations to your app.
New features
- Render task default attributes on the form by @nvasilevski in #532
- Allow backoff to be specified via a proc by @adrianna-chang-shopify in #547
- Render type-specific fields for attributes by @ryanwilsonperkin in #540
- Ruby 3.1 support by @etiennebarrie in #556
Deprecations
- Deprecate classic autoloading by @gmcgibbon in #531
Bug Fixes
- Support Sorbet-annotated task code display in task UI by @tyetraskshopify in #524
- Race conditions now handled via optimistic locking by @adrianna-chang-shopify in #549
Other Changes
- Move Task instantiation to TaskData by @etiennebarrie in #537
- Move callback handling to Run by @etiennebarrie in #552
New Contributors
- @tjwp made their first contribution in #525
- @tyetraskshopify made their first contribution in #524
- @nvasilevski made their first contribution in #532
- @ryanwilsonperkin made their first contribution in #542
- @larouxn made their first contribution in #550
- @promulo made their first contribution in #560
Full Changelog: v1.6.0...v1.7.0
Version v1.6.0
MaintenanceTasks v1.5.0
New features
- Allow custom backtrace cleaners to be configured. #453
- Show Task Run's arguments in the UI. #455, #460
Fixes
- Remove status transition of
paused
=>cancelled
from valid transitions. #434 - Document how to upgrade the gem when migrations have been deleted. #442
- Add reusable stuck tasks constant. #448
- Persist
job_id
to theRun
before it is enqueued. #451 #459 - Add time spent running to Task show page. #452
- Remove n+1 query for active storage attachments on index page. #461
MaintenanceTasks v1.4.0
MaintenanceTasks v1.3.0
MaintenanceTasks v1.2.2
MaintenanceTasks v1.2.1
Fixes
Preserve compatibility with apps using Rails versions < 6.1 when calling .has_one_attached
in Run
. #385