Cancel a Bad Config
Stop a bad Lunar configuration's work with lunar hub pull --cancel, and re-run what Lunar Hub can under the fixed configuration for the commits it already judged.
Reverting a config only helps commits pushed afterwards. Every commit Lunar Hub has already judged stays pinned to the configuration that judged it, so open pull requests and branch heads keep the bad verdict until someone pushes again. When a bad config has shipped, such as a collector that breaks or a policy that fails everything, cancel it once the revert or fix has synced. The cancel stops the bad version's work and re-runs what Lunar Hub can under the fixed version. Some things only your CI or a new push can redo; see What a cancel can't repair.
Revert or fix the config
Push the revert or the fix to the config repository's default branch. The sync job publishes it as the current version, the same as any other change.
Cancel the bad version
Run lunar hub pull against the same repository the sync job pulls, naming the bad version by the full commit SHA of its config:
lunar hub pull --cancel <bad-config-commit-sha> github://my-org/my-config-repo@mainThe pull itself is usually skipped as already installed, and the cancel still applies. With the service token, add --actor <your-name> so the cancel is attributed. Lunar Hub refuses to cancel the current version, so sync the fix first.
Watch it finish
The command returns once the cancel is queued. The Configuration cancels panel on the System status dashboard shows its progress, and it is finished when Still pinned and Reprocessing are both 0. Re-pin reading not running while commits are still pinned means the cancel stopped partway; run the same command again.
What stops
Queued work never starts. The bad version's queued collector and policy runs are skipped, including collector jobs not yet handed to a pod, and its results are no longer posted.
Runs already in flight are marked canceled. Their pods are left to finish, since Lunar Hub can't stop a running pod.
CI jobs still running the bad version keep sending data, because Lunar Hub can't cancel your CI. That data is evaluated under the current version instead, on a best-effort basis.
What runs again
Every commit the bad version judged moves to the current version, default-branch heads before pull requests. For each one, Lunar Hub re-runs the code collectors that are new in the current version, changed since the bad one, or whose last run didn't succeed, including the runs the cancel stopped. Collectors that are unchanged and succeeded keep their data, since running them again would produce the same output. Every affected component is then re-evaluated under the current configuration. A component the current version no longer has leaves the report for those commits.
What pull request authors see
On GitHub, the Earthly Lunar check run goes from the canceled version's result to pending, and then to the current version's verdict; the pull request comment is rewritten to match. On GitLab, the commit status, external status check, merge request note, and badges are replaced the same way. lunar ok-release on a branch head answers from the current version, and reports not-done while that is pending.
What a cancel can't repair
CI collector data. Only your CI can run CI collectors, so their data from the bad version keeps counting for that commit. Re-running the CI job adds new data next to it rather than replacing it; a new commit starts clean.
Data the current version doesn't re-collect. A canceled pod's output is still stored when it reports. It counts only where nothing newer replaced it, such as a collector the fix removed, or one whose re-run under the current version failed. Policies that don't read that data are unaffected.
Cron collectors aren't re-run. They fill in on their own schedule, as after any configuration change.
Components the current version adds appear on each commit's next push or CI re-run, since the changed paths of an earlier push are no longer available.
Last updated
