Skip to content

Fix to use string keyword for RunPipelineScheduleWorker options

Tianwen Chen requested to merge 338609-fix-play-button into master

What does this MR do and why?

This is a fix forward for !108975 (merged) to use string keyword instead of symbol keyword.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

  1. Enable feature flag by running:
    rails runner 'Feature.enable(:ci_use_run_pipeline_schedule_worker)'
  2. create a new project 338609-test-play-button
  3. add CI config by going to CI/CD -> Editor with the following content:
    image: busybox:latest
    
    build:
      script:
        - echo "Do your build here"
        - sleep 15
  4. go to CI/CD -> Schedules and create a schedule
  5. click the Play button for the created schedule
  6. go to CI/CD -> Pipelines and check if the pipeline for this schedule is created and runs
  7. wait until the next schedule time and see if the pipeline is triggered as scheduled

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #338609 (closed)

Edited by Tianwen Chen

Merge request reports