How the build tracking lifecycle works
mainThe database acts as the source of truth between the Scheduler and the Publisher:
- Scheduler: Uses
isBuildAlreadyScheduledto check if a build exists. If not (or ifretry=true), it usescreateBuildRecordto schedule a new one. - Publisher: Once a build finishes, it uses
updateBuildStatusto set the status tocompletedorfailed.
Builds are automatically skipped if a record already exists with retry=false.