cleanup todos

This commit is contained in:
Shreyas Goenka 2024-10-22 15:52:00 +02:00
parent 09e1291a1b
commit 934ae80ab6
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 0 additions and 2 deletions

View File

@ -321,8 +321,6 @@ func (r *jobRunner) Restart(ctx context.Context, opts *Options) (output.RunOutpu
// We don't need to cancel existing runs if the job is continuous and unpaused. // We don't need to cancel existing runs if the job is continuous and unpaused.
// the /jobs/run-now API will automatically cancel any existing runs before starting a new one. // the /jobs/run-now API will automatically cancel any existing runs before starting a new one.
continuous := r.job.JobSettings.Continuous continuous := r.job.JobSettings.Continuous
// TODO: Is this correct wrt pause status?
// TODO: test all permutations, even pipelines.
if continuous != nil && continuous.PauseStatus == jobs.PauseStatusUnpaused { if continuous != nil && continuous.PauseStatus == jobs.PauseStatusUnpaused {
return r.Run(ctx, opts) return r.Run(ctx, opts)
} }