Refactor worker_cron_expression for pipelineSchedule
What does this MR do and why?
Change the worker_cron_expression
in PipelineSchedule
to be public so that calculateNextRunService
can re-use this variable without extra duplication
Screenshots or screen recordings
Refactoring change
How to set up and validate locally
Ensure PipelineScheduling still works.
- Schedule a new Pipeline
- Pipeline schedule's run_at should accurately reflect the next time it should run according to the cron passed in
- Changing the worker's cron via
gitlab.yml's pipeline_schedule_worker
config should affect pipeline schedule's run_at
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #333392 (closed)
Edited by Max Fan