Skip to content

fix: allow no schedulerPort if atleast one cron schedule is defined - #1833

Draft
Richard87 wants to merge 2 commits into
masterfrom
1822-remove-requirement-for-schedulerport-for-job-scheduler-when-only-cron-scheduler-is-used
Draft

fix: allow no schedulerPort if atleast one cron schedule is defined#1833
Richard87 wants to merge 2 commits into
masterfrom
1822-remove-requirement-for-schedulerport-for-job-scheduler-when-only-cron-scheduler-is-used

Conversation

@Richard87

Copy link
Copy Markdown
Contributor

Make sure all enabled environments are valid in cases of env override

errs = append(errs, fmt.Errorf("environment %s: %w", env.Name, ErrSchedulerPortOrCronRequiredForJob))
}
}
return errs

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suppose the job does not have scheduler port or cron schedule, in addition to not being enabled in any environment. Currently it would return an empty slice of errors. Should we instead return ErrSchedulerPortOrCronRequiredForJob?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove requirement for schedulerPort for job scheduler when only cron scheduler is used

2 participants