Skip to content

Fix lifecycle_type_backfill job never running and piling up - #5286

Merged
philippthun merged 2 commits into
cloudfoundry:mainfrom
sap-contributions:lifecycle-backfill-clock-fix
Jul 14, 2026
Merged

Fix lifecycle_type_backfill job never running and piling up#5286
philippthun merged 2 commits into
cloudfoundry:mainfrom
sap-contributions:lifecycle-backfill-clock-fix

Conversation

@philippthun

@philippthun philippthun commented Jul 13, 2026

Copy link
Copy Markdown
Member

The job's queue was missing from the generic worker's allowlist, so it was enqueued but never executed.

Also make the scheduler skip enqueuing when an untouched job is already queued, and keep only the newest untouched job, removing the rest.

The generic worker's queue list was maintained by hand and had to be kept in sync with the clock scheduler. A missing entry meant a job was enqueued but never consumed. Build the list from the scheduler's job definitions so new periodic jobs are wired up automatically.

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

The job's queue was missing from the generic worker's allowlist, so it
was enqueued but never executed.

Also make the scheduler skip enqueuing when an untouched job is already
queued, and keep only the newest untouched job, removing the rest.
The generic worker's queue list was maintained by hand and had to be
kept in sync with the clock scheduler. A missing entry meant a job was
enqueued but never consumed. Build the list from the scheduler's job
definitions so new periodic jobs are wired up automatically.
@philippthun philippthun changed the title Lifecycle backfill clock fix Fix lifecycle_type_backfill job never running and piling up Jul 13, 2026
@philippthun
philippthun marked this pull request as ready for review July 13, 2026 16:02

@johha johha left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GETM

@philippthun
philippthun merged commit 76c42e7 into cloudfoundry:main Jul 14, 2026
11 checks passed
ari-wg-gitbot added a commit to cloudfoundry/capi-release that referenced this pull request Jul 14, 2026
Changes in cloud_controller_ng:

- Fix lifecycle_type_backfill job never running and piling up
    PR: cloudfoundry/cloud_controller_ng#5286
    Author: Philipp Thun <philipp.thun@sap.com>
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.

2 participants