Open kpocius opened 8 months ago
Issue confirmed! After creates a pipeline and then remove the block of the scheduler job it remains (everything through terraform) Followed steps:
This happens because the underlying API doesn't support removing a schedule from a Data Pipeline. This is also why the GCP Web UI lacks this option. Can I ask what the use case of a pipeline without scheduling is? I ask because Data Pipelines is not meant to support pipelines without scheduling, and next steps depend on the use case.
We are creating our own schedules, so we can control additional parameters such a retries.
For now a workaround is not to set the schedule on google_data_pipeline_pipeline in the first place, and just clean up old schedules manually.
Thanks for looking into this.
Makes sense. Unfortunately, our headcount is short these days and it's unlikely that we'll have time to fix this service-side any time soon. For the time being, the workaround will have to do. Sorry.
No worries, thanks for looking into it.
Community Note
Terraform Version
1.7.4
Affected Resource(s)
google_data_pipeline_pipeline
Terraform Configuration
No response
Debug Output
No response
Expected Behavior
Removing
schedule_info
should remove the associated Cloud Scheduler jobActual Behavior
Cloud Scheduler job remains in place and the pipeline keeps getting executed on the schedule which is now not defined anywhere in the code.
Steps to reproduce
schedule_info
initially setschedule_info
blockImportant Factoids
No response
References
No response
b/328769966