Open osmus-leo opened 1 day ago
Thanks for the report, we'll have a look.
OK, so, when using schedule_type = "custom_cron"
, schedule_days
is not relevant so, even if we send it, the API gets back to us without schedule_days
.
Would it work if we were raising an error when both schedule_type = "custom_cron"
and schedule_days
are defined in the config?
The provider as-is actually works fine to me (even if we could raise more error/warning). In dbt Cloud, schedule_days
is actually set empty if the job is configured to use cron.
Describe the bug
Terraform is repeatedly removing the schedule_days attribute from the dbtcloud_job resource during each terraform apply. When the schedule_days attribute is uncommented and specified, Terraform attempts to remove these days on every apply,
Error message
Terraform keeps removing the contents of scheduled days on every terraform apply
Resource configuration
Expected behavior
scheduled days are removed
Config (please complete the following information):
Additional context
Notice that in the state below the scheduled days is always an empty list.
if you uncomment the scheduled days
scheduled_days = [0, 1, 2, 3, 4, 5, 6]
terraform keeps trying to add those days at every apply