Skip to content

Production `ci_pipeline_schedules` data check if there any recored has `next_run_at IS NULL`

We would need to check some production data to make sure if there any records match next_run_at IS NULL. Basically, this will not happen in general use, although I want to check if there are any edge cases.

Context: https://gitlab.zendesk.com/agent/tickets/80289

To check:

Ci::PipelineSchedule.where("(next_run_at IS NULL) AND active = true").count
Ci::PipelineSchedule.where("(next_run_at IS NULL) AND active = false").count

/cc @zj @grzesiek