Skip to content

Latest commit

 

History

History
468 lines (368 loc) · 30.6 KB

CHANGELOG.md

File metadata and controls

468 lines (368 loc) · 30.6 KB

Ductwork Changelog

[1.5.1]

  • chore: exclude some extraneous files and directories from the gem bundle

[1.5.0]

  • fix: re-enqueue the failed step when reviving a branch halted with job_crashes_exhausted - revive re-advanced it as if the job had succeeded, passing a missing return value downstream
  • fix: copy each succeeded step's job when reviving a pipeline so a combine or collapse after the revive receives every sibling's return value - the copied steps had no jobs, so the fan-in silently dropped siblings that had already completed
  • feat: redesign the dashboard with top-level navigation, an overview of halted pipelines and pipelines by class, status tabs with counts, compact expandable step and error rows, and a phone layout
  • feat: draw the workflow on the dashboard's pipeline page in place of the raw definition, with each node showing its step counts by status, retried and crash-recovered steps, and halt reasons, and linking to the matching steps
  • feat: add a node filter to the steps list on the dashboard's pipeline page and show the page position, disabling the next button on the last page
  • fix: stop the dashboard's runtime timer on halted runs and failed steps
  • fix: print error backtraces once on the dashboard - they were followed by a dump of the same lines as an array
  • fix: count dashboard errors per run instead of per pipeline, without loading every step of every listed run
  • fix: filter the dashboard's pipeline page steps by klass - the shared filter queried pipeline_klass, which only exists on runs, so choosing a class raised ActiveRecord::StatementInvalid
  • fix: order the steps list by started_at then id so steps sharing a timestamp are not repeated or skipped between pages
  • fix: clamp the dashboard's page number at zero - the previous link on the first page pointed at page=-1, a negative OFFSET that PostgreSQL rejects
  • chore: replace the dashboard's vendored Pico and flexboxgrid stylesheets with a single stylesheet and remove all inline styles

[1.4.0]

  • feat: validate steps and pipelines/workflows during boot of main process

[1.3.0]

  • feat: add more MigrationHelper methods for swapping and updating the availability claim index
  • fix: resolve the database adapter from the configuration (Ductwork::Record.adapter) instead of Ductwork::Record.connection.adapter_name, and take the database clock's reading through connection_pool.with_connection - ActiveRecord::Base#connection is soft deprecated and takes a sticky lease, so ConnectionPool#with_connection skips its own checkin (it releases only unless lease.sticky) and every advancer or worker thread that touched the claim hot path pinned a pool slot for its lifetime; the Rails executor checked those back in per unit of work so long-running processes did not leak, but a host app setting config.active_record.permanent_connection_checkout = :disallowed would have raised, and :deprecated emitted a warning per claim
  • fix: ExecutionClaim now selects row locking on Oracle as it always intended - the predicate tests /oracle_enhanced/i but was matched against connection.adapter_name.downcase, which renders as oracleenhanced with no underscore, so Oracle silently fell through to optimistic locking; it is matched against the configured adapter (oracle_enhanced) now. Oracle is not covered by CI
  • fix: make Ductwork::Processes::ProcessSupervisor#shutdown idempotent and serialize it on a mutex - run calls shutdown itself once its loop sees the running context go down, so a caller that stops the supervisor from another thread raced the supervisor's own call and both ran reap_own_process_record! at the same time

[1.2.0]

  • feat: add add_availability_claim_index and remove_availability_claim_index to Ductwork::MigrationHelper, which own the adapter-specific shape and the name of the availability claim index
  • chore: build the availability claim index through the new migration helpers

[1.1.2]

  • fix: lazily create configuration
  • fix: prevent step's idempotency key from returning nil

[1.1.1]

  • fix: use database clock instead of Time.current to avoid clock skew in Branch#latest_step paths
  • fix: record error metadata on process_crashed results — Execution#crashed! now takes the exception that killed the work loop (writing its class, message, and backtrace, as errored! already did) or one of the new Ductwork::Crash markers (ProcessCrash, ThreadCrash, AbandonedClaim, OrphanedClaim) naming which recovery path noticed the lost claim; previously all five call sites collapsed into a single unlabeled result row and the work loop logged the error class and message before discarding them, leaving a crash loop undiagnosable from the database; recorded backtraces are now capped at the 10 frames nearest the raise, since text tops out at 64KB on MySQL and an insert failure inside crashed! would leak the claim
  • fix: use Ductwork::DatabaseClock instead of Time.current in claiming queries
  • fix: set updated_at timestamp when touching record through update_all or update_columns
  • fix: reap the forking supervisor's own process record on shutdown, as the threaded supervisor already did, so a clean stop no longer leaves a record behind for a peer to sweep up supervisor.reaper_timeout later
  • fix: skip the reaping process's own record in Process.reap_all! so a supervisor whose work loop stalled past supervisor.reaper_timeout cannot declare its own in-flight work crashed — in threaded mode the advancer and worker threads share the supervisor's process record, so self-reaping released branches and re-enqueued jobs that live threads were still running; a peer supervisor still reaps the record when the process genuinely dies
  • fix: report a heartbeat from the forking supervisor's own work loop — its process record went stale after supervisor.reaper_timeout and its own reaper sweep destroyed it, so a healthy supervisor disappeared from the dashboard and the health check reported it dead five minutes into every boot, failing any container liveness probe wired to it
  • fix: read the run and pipeline status before writing when marking a claimed job in_progress, so a no-op conditional UPDATE no longer takes an exclusive row lock held for the rest of the claim transaction — InnoDB at REPEATABLE READ locks the row during the primary key lookup even when the qualification fails, so on MySQL and Trilogy every worker claiming a step of the same run serialized on the two rows the whole run shares, capping per-run claim throughput regardless of worker count
  • fix: jitter the idle polling sleep of advancer and worker threads by ±25% of the configured polling_timeout so threads spawned together stop waking in lockstep and piling onto the same claim candidates — the configured timeout remains the average poll latency
  • fix: distinguish a contended claim (candidates existed but every sampled one lost its race) from an idle queue so an advancer that loses a race re-enters the work loop immediately instead of sleeping a full polling interval — Branch.with_latest_claimed now returns :claimed/:contended/:idle rather than a boolean
  • fix: sample the branch to claim from a window of the oldest candidates (sized off pipeline_advancer.count) and walk to the next sampled ID when a claim loses its race, instead of every advancer thread in every process contending for the single oldest row — raising the advancer count or adding advancer processes now increases advancement throughput instead of degrading it
  • fix: re-assert the full candidate predicate (branch status and an advancing/failed step, not just a null claim) in the claim UPDATE query so an advancer whose candidate went stale can no longer claim a branch that another advancer already advanced and released — which advanced the branch off a freshly enqueued step whose job had not run, routing on a nil return value
  • fix: release the claim instead of routing or halting when Branch#advance! finds no step to advance
  • fix: confirm a stuck thread actually died before restarting it, so a Thread#kill that cannot interrupt a blocking C-level database call no longer leaves two threads sharing one worker's claim state
  • fix: give each worker/advancer thread a fresh running context on start so a thread restarted after a kill is not immediately shut down by the context the kill tore down
  • fix: reset the heartbeat timestamp on start so a restarted thread is not judged stuck on the stale timestamp that got it killed
  • fix: log the claimed job/branch of a dead thread before the restart clears it
  • fix: let the nested halt path (divert no-match, divide/expand fan-out cap) propagate errors to the advancement rescue instead of committing a step as completed alongside an unclaimable branch

[1.1.0]

  • chore: add color to CLI banner
  • chore: change CLI banner to be more on-theme

[1.0.0]

  • chore: add trilogy database adapter to the CI test matrix
  • chore: read workflow/pipelines definitions from app/workflows directory
  • fix: rescue transient errors in supervisor/runner work loops so one bad iteration doesn't skip graceful shutdown or kill the process
  • chore: rescue invalid foreign key error as to not let thread die
  • fix: reap claims that lost their process ID on a process destroy racing a fresh claim
  • fix: always recover incomplete claims when reusing a PID + machine identifier
  • fix: recover an advancement whose transition completed the branch and then rolled back (e.g. a run-row deadlock victim) instead of stranding the branch in advancing — the claim fence and release! now use the token captured when advancement starts rather than the in-memory attribute that complete!/halt! null mid-transition
  • fix: lock the run FOR NO KEY UPDATE on Postgres when resolving terminal state so it does not deadlock upgrading past the FOR KEY SHARE locks concurrent transitions hold from inserting run-referencing rows
  • fix: fan-in collapse correctly when siblings are not direct children of the expanding branch (intermediate divide/combine/chain or nested expands no longer create duplicate collapse targets)
  • feat: record the matching expand node as barrier_node on collapse edges in the pipeline definition
  • fix: use database clock instead of app-server time for execution, job, and process timestamps
  • feat: add Ductwork::DatabaseClock.now to read current time from the database
  • fix: add missing indexes for runs and transitions
  • fix: use correct index for claiming for mysql databases
  • chore: add optional force argument on process reap
  • chore: do not raise StaleClaimError in Branch#with_claim_fence
  • fix: add missing claim fence around branch/advancement mutation queries
  • fix: add a branch claiming guard to skip when no live process record exists
  • fix: cleanup crashed thread and release branch atomically
  • feat: cap pipeline advancer crashes and halt with advancer_crashes_exhausted
  • feat: create configuration for pipeline advancer max crash count
  • chore: conditionally update step, run, and pipeline status when claiming
  • fix: fire on_halt once and outside of all database transactions
  • fix: add missing database indexes (mostly) for dashboard pages
  • fix: only sleep pipeline advancer when no branch is claimed
  • feat: add configurable pipeline advancer thread pool via pipeline_advancer.count
  • fix: do not let one wedged worker freeze the whole supervisor work loop
  • fix: ignore already-exited child processes during graceful shutdown
  • chore: set job_crashes_exhausted as pipeline halt reason when exhausted crash budget
  • feat: cap and tail back-off execution crashes
  • feat: create configuration for job worker max crash count
  • feat: add Ductwork::Workflow alias of Ductwork::Pipeline
  • fix: skip "internal" errors when calculating advancement retry budget
  • chore: bump advancement retry count to 10
  • feat: automatically restart threads that are stuck in framework code
  • fix: add secondary order by UUID v7 to get latest step on branch
  • feat: make supervisor reaper timeout configurable
  • chore: add composite index for branch claim step subquery
  • chore: add composite index for latest_step lookup
  • chore: add index on processes for last_heartbeat_at timestamp
  • fix: use partial index for resolving run's terminal state for performance
  • fix: use partial index in branch claim query for performance
  • fix: use original claim token when cleaning up dead pipeline advancer threads
  • fix: do not call on_halt lifecycle event if transaction rolls back
  • fix: cleanup claimed resources on worker/advancer restart
  • fix: crash execution if thread crashes without process crashing
  • fix: abandon advancements if thread crashes without process crashing
  • fix: prevent OS-level PID reuse from adopting stale Ductwork::Process record
  • fix: fence Execution#crashed! with process ID so a reclaimed execution isn't clobbered by the reaper
  • fix: check claim tokens before advancing branch
  • feat: create in-scope idempotency_key attribute for the Step model
  • fix: raise Execution::CommitFailed from #succeeded!/#errored! instead of silently dropping the result when the reaper has clobbered an in-flight execution
  • fix: do not re-query current process ID in execution claiming
  • fix: use database clock in process supervisor to avoid cross-host clock drift
  • feat: add CLI health check command that reports supervisor processes health
  • fix: protect against cross-host clock skew with database time comparisons
  • chore: rescue heartbeat errors to prevent killing process
  • fix: duplicate Ductwork::BranchLink records when reviving a pipeline
  • fix: prevent possible double execution in Pipeline#revive! by only retrying advancing if it was the halt reason, otherwise retry the job
  • fix: pass failed job input arguments to new job when reviving a pipeline
  • fix: pass in owner process id when executing job - this ensures the process finishing the job is the one that claimed it
  • fix: make Execution#succeeded! and #errored! idempotent and fence with process id
  • feat: set ductwork_execution.process_id when claiming availability
  • chore: associate ductwork_executions to ductwork_processes
  • chore: hoist usages of app executor out of models and services
  • chore: refactor Job methods and claiming onto Execution
  • fix: prevent possible double job execution by using "current" execution record
  • chore: swap locking for atomic update in Ductwork::Availability#abandon!
  • chore: swap locking for atomic update in Ductwork::Advancement#abandon!
  • fix: make Ductwork::Job#execution_crashed! idempotent to prevent race condition with the reaper
  • fix: prevent possible double job execution by only wrapping user code in rescue
  • fix: atomically release branches conditioned on claim token
  • fix: fail abandoned availabilities and executions when reaping jobs
  • fix: fail abandoned advancements when reaping branches
  • fix: prevent double execution by explicitly killing process before replacing it if it failed health check
  • fix: close durability gap by rescuing branch halting
  • fix: close durability gap by releasing branch in advancement rescue
  • fix: permit id parameter when paginating
  • chore: set new execution time to be "now" when job worker crashes (ie. don't set a retry back-off as with job erroring)
  • feat: add a crash count to executions and increment when job worker crashes
  • chore: setup and add first durability integration test
  • chore: nullify claim token when releasing, completing, or halting branch
  • feat: prevent branch claim/release race condition by comparing tokens
  • chore: generate and set claim token on branch record during claiming
  • chore: add ductwork_branches.claim_token string column
  • chore: set @branch ivar after branch is claimed
  • fix: only use unique_by options for non-MySQL db adapters
  • feat: add mysql and postgresql databases to CI test matrix
  • fix: don't use partial indexes for MySQL
  • fix: adopt or create process record when reporting heartbeat
  • fix: fan-in advancement checks branch status instead of step status
  • fix: add back in calling on_halt DSL method
  • feat: set halt_reason when halting branch
  • chore: add halt_reason column to ductwork_branches table
  • fix: update proper records and state for advancer retry
  • feat: respect pipeline advancer max retry configuration
  • feat: add pipeline advancer max retry configuration
  • feat: properly set pipeline/run terminal states
  • fix: check for terminal status before setting status on pipeline
  • chore: do not halt pipeline from job worker
  • feat: update branch claim query
  • feat: implement Ductwork::Pipeline#revive!
  • chore: add source_step_id column on ductwork_steps
  • fix: protect against null error backtraces for job results
  • fix: update dashboard pages to handle ductwork_runs
  • fix: create ductwork_runs records opaquely in rspec test helpers
  • feat: associate branches, steps, and tuples to runs instead of pipelines
  • feat: add ductwork_runs table and model to represent pipeline runs
  • chore: rename ductwork_runs to ductwork_attempts
  • chore: log when pipeline advancement errors
  • fix: move branch release into main advance transaction
  • fix: set last_advanced_at timestamp when releasing branch
  • chore: derive process dead threshold from process reap threshold
  • fix: move transition and advancement creation into claim transaction
  • fix: guard against PID reuse with guard statement
  • fix: use safe navigation operator on process records
  • fix: rescue all job worker errors as to not let thread die
  • fix: reap process (and claims) on process restart or immediate shutdown
  • chore: bump ruby versions in CI
  • chore: bump rails versions in appraisals file
  • chore: DRY up process record destruction
  • fix: release job availabilities during process reaping
  • fix: use proper association to ductwork_processes in ductwork_availabilities
  • fix: release branches during process reaping
  • feat: add process reaper check to supervisors' run loop
  • chore: DRY up process record adoption and creation
  • fix: create or adopt process records in pipeline advancer and job worker
  • fix: create top-level process record for thread supervisor
  • fix: use safe navigation in rescue when advancing branch
  • fix: use correct column name in migration
  • feat!: advance branches instead of pipelines - BREAKING CHANGE: this completely changes how pipelines are advanced. to migrate let all your current pipelines complete then deploy
  • fix: delete child process records when restarting within supervisor
  • fix: wrap optimistic job claiming in a single transaction
  • chore: bump project and CI ruby versions to v4.0.2
  • fix: add missing index when migrating to UUIDs
  • fix: job availability claim and update state in a single transaction
  • feat: complete and halt active branches for pipelines
  • feat: create initial branch when a pipeline is triggered
  • feat: introduce Branch and BranchJunction models and tables
  • fix: correctly log transition names via edge

[0.26.0]

  • feat: add divert and complementary converge transitions - this is essentially a conditional/case statement transition for pipelines including it's "fan-in" method

[0.25.0]

  • chore: align "dampen" naming and remove "pause" naming

[0.24.0]

  • feat: add new step transition enum values

[0.23.0]

  • chore: add paused pipeline status to enum

[0.22.0]

  • feat: add optional to keyword argument to chain transition - this makes the DSL a bit more aligned

[0.21.0]

  • feat: enqueue jobs in batches when expanding - this marks a major performance improvement
  • fix: use node's defined klass when looking up max expansion depth
  • feat!: change all tables' primary key type to UUID v7 - BREAKING CHANGE: be sure to run bin/rails g ductwork:update to get the database migrations required to migrate existing data
  • chore!: drop support for ruby 3.2 - BREAKING CHANGE: we need UUID v7 from SecureRandom to use as primary keys for our tables; it is only available on Ruby 3.3+ (support ends in a ~month so this was going to happen anyway)
  • feat: use row locking job claiming when the database supports it
  • feat: denormalize pipeline klass column on ductwork_availabilities - be sure to run bin/rails g ductwork:update to get the latest migration
  • fix: use pipeline class name in log message

[0.20.2]

  • fix: complete pipeline when there are no steps to expand to

[0.20.1]

  • fix: fallback to hostname if machine id file is blank - came across this in heroku

[0.20.0]

  • feat: add "timed_out" enum value to execution result model
  • chore: change log level to warn for thread restart messages
  • chore: add thread name to log messages
  • feat: add optional index argument to pipeline advancer to be used in thread name
  • fix: use correct "role" in log messages
  • feat: support a "thread-only" mode instead of forking processes
  • chore: use more descriptive thread names for job workers
  • chore: refactor to Ductwork::Processes::JobWorker#join
  • chore: refactor to Ductwork::Processes::JobWorker#kill
  • chore: refactor to Ductwork::Processes::JobWorker#name
  • chore: use RunningContext instance instead of a boolean in the Supervisor - this running context will likely be shared to all child runners when running in "all thread" mode
  • chore!: officially drop support for ruby 3.1 - BREAKING CHANGE: while this is a breaking change, this shouldn't affect anyone since ruby 3.1 has been EOL for a bit; this is more of a formality
  • chore: update bundler
  • chore: change project ruby version to 4.0.1
  • feat: add "forking" configuration with default - this will be used to change the concurreny model on boot, specifically deciding if pipeline advancer and job workers will be forked or created as threads

[0.19.0]

  • chore: bump rails-related dependencies to v8.1.2
  • chore: remove ruby v3.2.9 from CI testing matrix - support is ending in March '26 but it's being removed now to better support edge rails
  • feat: loosen rails version constraint to allow rails edge
  • feat: respect "role" configuration when booting - ie. run main process as supervisor, pipeline advancer, or job worker
  • feat: allow job worker runner to take a collection of pipelines and create workers for all configured pipelines - this will only happen when the "role" configuration is "worker" otherwise a process will be spun up for each pipeline
  • feat: add "role" configuration - to be used to set the role of the entire ductwork running instance

[0.18.0]

  • fix: show countdown for pipelines/steps scheduled in the future
  • feat: add input and output arguments to pipeline dashboard page
  • feat: add RSpec matcher for asserting pipeline context

[0.17.0]

  • feat: assign step node names unique hex values in the pipeline definition
  • chore: remove unnecessary logging

[0.16.0]

  • feat!: allow Pipeline.trigger to accept arbitrary positional arguments - this is a BREAKING CHANGE as it changes the structure of how arguments are stored and passed between steps
  • feat: add RSpec testing helper for setting context state
  • feat: add RSpec testing helper for easily creating pipelines

[0.15.1]

  • fix: pass pipeline ID directly to step builder method instead of passing step object

[0.15.0]

  • chore: remove unnecessary transaction in job enqueueing method
  • feat: expose pipeline and step classes validation method instead of running in a rails initializer
  • feat!: introduce pipeline Context - this is a BREAKING CHANGE because step classes now need to inherit from Ductwork::Step; they are no longer POROs

[0.14.1]

  • fix: check if steps and pipelines directories exist before eager loading

[0.14.0]

  • feat: add support for ruby v4.0

[0.13.1]

  • fix: order step executions by started at

[0.13.0]

  • feat: print CLI banner on boot
  • feat: add and populate ductwork_pipelines.halted_at timestamp
  • fix: fix style violations
  • fix: remove config/ductwork.yml test file after each test run
  • feat: mount rails engine in routes file with install generator
  • feat: implement a basic web dashboard
  • feat: isolate Ductwork namespace - this is in prep for a web dashboard

[0.12.0]

  • chore: replace usages of Pipeline#halted! with Pipeline#halt!
  • feat: create Ductwork::Pipeline#halt! method
  • chore: extract Ductwork::Pipeline#complete! method

[0.11.2]

  • fix: join error backtrace lines before persisting in text column
  • fix: use computed max_retry when determining job retry
  • fix: protect against a possible null status when advancing a pipeline
  • fix: correct spelling of last_heartbeat_at variable
  • fix: flip inverted deadline check in job worker runner
  • fix: flip inverted deadline check in pipeline advancer runner
  • fix: reference thread variable from job_worker, not top-level
  • fix: remove unnecessary, erroneous line in definition builder

[0.11.1]

  • fix: use info-level for job worker restart log messages
  • fix: use "killed" result in job execution log message when job worker is restarted

[0.11.0]

  • feat: expose job attribute during claim and execution in job worker

[0.10.0]

  • chore: update thread health-check logging

[0.9.2]

  • fix: correctly set last node to node id instead of class name

[0.9.1]

  • fix!: assign unique node names (klass name and stage) in pipeline definition DAG - this is a BREAKING CHANGE because the pipeline definition structure has changed

[0.9.0]

  • feat: add health check to job worker runner process - this is a basic check if a thread is healthy via Thread#alive? and restarts the thread if it is dead

[0.8.1]

  • fix: properly wrap "units of work" in rails application executor in pipeline advancer
  • fix: remove wrapping thread creation with the rails application executor - these threads are long-running so they should not be wrapped; later commits will wrap each individual "unit of work" with the executor as recommended
  • fix: move pipeline advancer creation into thread initialization block - this effectively doesn't change anything but is useful in case we need to do something on the advancer thread in the initializer
  • fix: move job worker creation into thread initialization block - this effectively doesn't change anything but is useful in case we need to do something on the worker thread in the initializer

[0.8.0]

  • chore: re-organize Ductwork::CLI class
  • feat!: better name ductwork_steps.step_type to to_transition - the column rename is a breaking change but not bumping major version since the gem is still pre-1.0
  • feat: add delay_seconds and timeout_seconds columns to ductwork_steps table
  • feat: set pipeline status to advancing once pipeline is claimed and advancing starts
  • chore: add advancing status enum value to Pipeline

[0.7.2]

  • chore: small DRY refactor in pipeline advancement

[0.7.1]

  • chore: isolate on halt execution in Ductwork::Job#execution_failed!
  • chore: add pipeline definition metadata to DefinitionBuilder initializer

[0.7.0]

  • feat: set Pipeline and Step models status to "in-progress" when claiming latest job

[0.6.1]

  • chore: update misc development dependencies
  • fix: eager load pipelines and steps directory after rails initialization - the lazy load hook originally being used would fire before the rails.main autoloader had fully setup; when trying to eager load the directories a Zeitwerk::SetupRequired error would be raised

[0.6.0]

  • feat: expose Ductwork.eager_load method for eager loading code via zeitwerk
  • chore: let zeitwerk autoload models from lib/models directory instead of letting rails autoload them from the app/models directory via the rails engine
  • feat: add started_at column to ductwork_pipelines table - for now, this will only be used in Pro features.

[0.5.0]

  • chore: add "waiting" status to Step model
  • chore: add "waiting" status to Pipeline model
  • fix: change jobs.input_args and jobs.output_payload column type to text
  • fix: change pipelines.definition column type to text - this prevents larger definitions from being clipped if there is a size limit on the string column
  • feat: add missing unique index on ductwork_results and ductwork_runs tables
  • feat: add missing composite index on ductwork_executions table for Ductwork::Job.claim_latest method
  • feat: add missing composite index on ductwork_availabilities table for Ductwork::Job.claim_latest method
  • feat: use array instead of ActiveRecord relation when advancing pipelines - this has major performance benefits but comes with memory-usage implications (see comments)
  • fix: add condition to query to return correct pipelines that need advancing
  • fix: release pipeline claim only if successfully claimed
  • chore: add pipeline ID to misc log lines
  • feat: add missing composite indexes on ductwork_steps table

[0.4.0]

  • chore: change job worker thread name format
  • feat: add and respect pipeline-level pipeline_advancer.polling_timeout configuration in pipeline advancer
  • feat: respect job_worker.polling_timeout configuration in job runner
  • feat: add pipeline-level job_worker.polling_timeout configuration
  • feat: check pipeline and step-level max retry configurations when retrying a job
  • feat: add pipeline and step-level job_worker.max_retry configurations
  • feat: add ability to set job_worker.count config manually
  • chore: move configuration specs under their own directory
  • feat: halt pipeline instead of erroring if max step depth is exceeded
  • chore: move specs under directory
  • feat: allow setting pipeline_advancer.steps_max_depth configuration manually
  • feat: raise Ductwork::Pipeline::StepDepthError error if return payload count exceeds the configuration
  • feat: add pipeline_advancer.steps.max_depth configuration

[0.3.1]

  • chore: bump dependencies and update necessary files
  • chore: update email address in gemspec
  • chore: move logger out of config to top-level Ductwork module
  • chore: promote Ductwork::Pipeline#parsed_definition to a public method
  • fix: raise when trying to collapse a most recently divided pipeline and vice versa

[0.3.0]

  • fix: correctly create collapsing and combining steps and jobs for complex pipelines
  • fix: add a new step and job for each active branch in a running pipeline
  • fix: add a new node and edge for each active branch of the definition
  • feat: add info-level logging for job events
  • feat: add info-level logging for pipeline events

[0.2.1]

  • fix: do not splat arguments when executing a job nor triggering a pipeline
  • fix: do not splat arguments when enqueuing a job and fix related spec
  • fix: add missing dependent: :destroy on certain associations

[0.2.0]

  • feat: validate all pipeline definitions on rails boot
  • feat: validate argument(s) passed to step transition DSL methods to be valid step class
  • fix: allow steps to be chained while pipeline is expanded or divided (before collapsing or combining) - before this incorrectly raised a CollapseError or CombineError

[0.1.0]