Skip to content

refactor!: rename distributedTtl option to distributedLease#551

Merged
merencia merged 1 commit into
mainfrom
refactor/rename-distributed-lease
Jun 18, 2026
Merged

refactor!: rename distributedTtl option to distributedLease#551
merencia merged 1 commit into
mainfrom
refactor/rename-distributed-lease

Conversation

@merencia

Copy link
Copy Markdown
Member

Renames the distributedTtl task option to distributedLease (same meaning: the safety lease, in ms, for lease-based run coordinators).

distributedTtl was the only abbreviation in the options API (the rest are spelled out: maxExecutions, executeTimeout, missedExecutionTolerance, …) and Ttl read poorly. distributedLease drops the abbreviation and groups with distributed in autocomplete; a "lease" is inherently a bounded duration.

It was introduced in 4.4.0 (days ago), so it's removed without an alias.

  • TaskOptions.distributedTtldistributedTtl becomes distributedLease
  • inline + background wiring updated
  • test + CHANGELOG ([Unreleased]) updated

Docs updated in node-cron-site#20.

Build, lint, and the full suite (374 tests) pass.

`distributedTtl` (introduced in 4.4.0) was the only abbreviation in the options
API, and the `Ttl` suffix read poorly. Rename it to `distributedLease`: same
meaning (the safety lease in ms for lease-based coordinators), no abbreviation,
and it groups with `distributed` in autocomplete. Removed without an alias since
it shipped only days ago in 4.4.0.
@merencia
merencia merged commit 23c7849 into main Jun 18, 2026
6 checks passed
@merencia
merencia deleted the refactor/rename-distributed-lease branch June 18, 2026 02:45
@merencia merencia mentioned this pull request Jun 18, 2026
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.

1 participant