Skip to content

Commit

Permalink
support pipeline pause
Browse files Browse the repository at this point in the history
  • Loading branch information
朱厚九 committed Mar 23, 2022
1 parent 95ab3b1 commit 348883d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workers/scheduler/gaiascheduler/scheduler.go
Expand Up @@ -171,7 +171,7 @@ func (s *Scheduler) work() {
// prepareAndExec does the preparation and starts the execution.
func (s *Scheduler) prepareAndExec(r gaia.PipelineRun) {
// Check the pipeline status, if it is PausedScheduled, exit this execution
if g, err := s.storeService.PipelineGetRunByID(r.UniqueID); err == nil {
if g, err := s.storeService.PipelineGetRunByID(r.UniqueID); err == nil && g != nil {
if g.Status == gaia.PausedScheduled {
return
}
Expand Down

0 comments on commit 348883d

Please sign in to comment.