Skip to content

Commit

Permalink
fix(cd): check ceramic stability after rust-ceramic deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
smrz2001 committed Nov 6, 2023
1 parent a7b11b4 commit 1ae8fce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cd/manager/jobs/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,11 @@ func (d deployJob) checkEnv() (bool, error) {
layout, _ := d.state.Params[job.DeployJobParam_Layout].(manager.Layout)
if deployed, err := d.d.CheckLayout(&layout); err != nil {
return false, err
} else if !deployed || (d.component != manager.DeployComponent_Ipfs) {
} else if !deployed || ((d.component != manager.DeployComponent_Ipfs) && (d.component != manager.DeployComponent_RustCeramic)) {
return deployed, nil
} else
// Make sure that after IPFS is deployed, we find Ceramic tasks that have been stable for a few minutes before
// marking the job complete.
// Make sure that after IPFS or rust-ceramic is deployed, we find Ceramic tasks that have been stable for a few
// minutes before marking the job complete.
//
// In this case, we want to check whether *some* version of Ceramic is stable and not any specific version, like we
// normally do when checking for successful deployments, so it's OK to rebuild the Ceramic layout on-the-fly each
Expand Down

0 comments on commit 1ae8fce

Please sign in to comment.