Skip to content

Comments

Bump github.com/netresearch/go-cron from 0.9.1 to 0.11.0#834

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/go_modules/github.com/netresearch/go-cron-0.11.0
Open

Bump github.com/netresearch/go-cron from 0.9.1 to 0.11.0#834
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/go_modules/github.com/netresearch/go-cron-0.11.0

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 16, 2026

Bumps github.com/netresearch/go-cron from 0.9.1 to 0.11.0.

Release notes

Sourced from github.com/netresearch/go-cron's releases.

v0.11.0

What's Changed

Features

  • add IsJobRunning/IsJobRunningByName for per-entry status query
  • add WaitForJob/WaitForJobByName for graceful job replacement
  • add UpsertJob for create-or-update convenience
  • context-propagating chain wrappers
  • per-entry context + UpdateEntryJob convenience methods
  • add UpdateEntry/UpdateEntryByName to replace schedule + job atomically

Bug Fixes

  • update changelog version comparison links
  • preserve entry context on run-once auto-removal
  • handle parse errors explicitly in cookbook dynamic scheduling recipe
  • address review comments on UpdateEntry

Documentation

  • add IsJobRunning/IsJobRunningByName to API reference and changelog
  • add WaitForJob/WaitForJobByName to docs
  • add context-propagating wrappers + UpsertJob to docs
  • add per-entry context + UpdateEntryJob to API reference, cookbook, changelog
  • fix incomplete context example in UpdateEntry API reference
  • add UpdateEntry/UpdateEntryByName to API reference, cookbook, changelog

Other Changes

  • chore: release v0.11.0
  • test: IsJobRunning/IsJobRunningByName coverage
  • test: WaitForJob/WaitForJobByName coverage
  • test: context propagation through wrappers + UpsertJob

Supply Chain Security

This release includes:

  • SBOM: Software Bill of Materials in CycloneDX and SPDX formats
  • Checksums: SHA256 checksums for all artifacts
  • Signatures: Keyless Sigstore/Cosign signatures for verification
  • Attestations: GitHub artifact attestations with SLSA provenance

Verify with GitHub CLI (Recommended)

# Verify artifact attestations (proves build origin)
gh attestation verify sbom.cyclonedx.json -R netresearch/go-cron
gh attestation verify sbom.spdx.json -R netresearch/go-cron
gh attestation verify checksums.txt -R netresearch/go-cron

Verify with Cosign

... (truncated)

Changelog

Sourced from github.com/netresearch/go-cron's changelog.

[0.11.0] - 2026-02-12

Added

  • UpdateEntry/UpdateEntryByName (#313, [PR#314]): Atomically replace both schedule and job function of an existing entry. The new job is re-wrapped through the configured Chain. Useful when rescheduling requires a new closure (e.g., context.WithCancel per schedule change). Returns ErrNilJob if job is nil.
  • Per-entry context ([PR#315]): Each entry now has its own context.Context derived from the Cron's base context. Jobs implementing JobWithContext receive this per-entry context instead of the shared base context. The entry context is automatically canceled when the entry is removed or when its job is replaced via UpdateEntry. Schedule-only updates (UpdateSchedule) do not cancel the context. Stop() cancels the base context, which cascades to all entry contexts.
  • UpdateEntryJob/UpdateEntryJobByName ([PR#315]): Convenience methods that parse a spec string with the Cron's configured parser, then atomically replace both schedule and job. Eliminates the need for callers to construct their own parser matching the Cron's configuration.
  • Context-propagating chain wrappers ([PR#316]): All chain wrappers (Recover, DelayIfStillRunning, SkipIfStillRunning, Timeout, Jitter, JitterWithLogger) now implement JobWithContext and propagate the incoming context to inner jobs that also implement JobWithContext. Previously, only TimeoutWithContext propagated context; other wrappers returned FuncJob which broke the context chain. This means per-entry context now flows through the entire wrapper chain to context-aware jobs.
  • UpsertJob ([PR#316]): Create-or-update convenience method that combines AddJob and UpdateEntry into a single call. Requires WithName option. If an entry with the name exists, its schedule and job are atomically updated; otherwise a new entry is created. Handles TOCTOU races via retry. Returns ErrNameRequired if no name is provided.
  • WaitForJob/WaitForJobByName (#317, [PR#318]): Block until all currently-running invocations of an entry complete. Returns immediately if the entry is not running or does not exist. Enables graceful job replacement without manual WaitGroup tracking: cr.WaitForJobByName("job"); cr.UpsertJob(...). Per-entry tracking uses a mutex-protected counter on each entry, wired into startJob.
  • IsJobRunning/IsJobRunningByName ([PR#319]): Non-blocking query to check whether an entry has any invocations currently in flight. Useful for monitoring dashboards and conditional logic (e.g., skip waiting if not running).

#313: netresearch/go-cron#313 [PR#314]: netresearch/go-cron#314 [PR#315]: netresearch/go-cron#315 [PR#316]: netresearch/go-cron#316 #317: netresearch/go-cron#317 [PR#318]: netresearch/go-cron#318 [PR#319]: netresearch/go-cron#319

Commits
  • 3e59464 chore: release v0.11.0 (#320)
  • 406ca8c fix: update changelog version comparison links
  • 230d569 chore: release v0.11.0
  • ec52c48 feat: add IsJobRunning/IsJobRunningByName (#319)
  • 177d08c docs: add IsJobRunning/IsJobRunningByName to API reference and changelog
  • 091e1c5 test: IsJobRunning/IsJobRunningByName coverage
  • e6805b3 feat: add IsJobRunning/IsJobRunningByName for per-entry status query
  • 9b9ef17 feat: WaitForJob/WaitForJobByName for graceful job replacement (#318)
  • 9823eb6 docs: add WaitForJob/WaitForJobByName to docs
  • a4fb501 test: WaitForJob/WaitForJobByName coverage
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Feb 16, 2026
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Feb 16, 2026
@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/netresearch/go-cron-0.11.0 branch 2 times, most recently from f6774c0 to 7fcfc02 Compare February 17, 2026 16:49
Bumps [github.com/netresearch/go-cron](https://github.com/netresearch/go-cron) from 0.9.1 to 0.11.0.
- [Release notes](https://github.com/netresearch/go-cron/releases)
- [Changelog](https://github.com/netresearch/go-cron/blob/main/CHANGELOG.md)
- [Commits](netresearch/go-cron@v0.9.1...v0.11.0)

---
updated-dependencies:
- dependency-name: github.com/netresearch/go-cron
  dependency-version: 0.11.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/netresearch/go-cron-0.11.0 branch from 7fcfc02 to 5811092 Compare February 18, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants