Open nghialv opened 2 years ago
Instead of checking the planners
and schedulers
list to ensure that only one deployment of the sample application is executed at one time, the controller
should have a list of executing deployments to check.
https://github.com/pipe-cd/pipecd/blob/master/pkg/app/piped/controller/controller.go#L349 https://github.com/pipe-cd/pipecd/blob/master/pkg/app/piped/controller/controller.go#L574
/assign @Hosshii
@nghialv
Piped deployment is marked as completed when scheduler.Run()
function is returned. Because scheduler error is ignored here, If piped failed to send deployment status to control plain, the consistency between control plain and piped is likely to be lost.
To fix this, I think it should mark piped completed only when request to control plain succeeded, and retry request to control plain if it failed.
What happened:
What you expected to happen:
How to reproduce it:
Environment:
piped
version:control-plane
version: