terraform-community-providers / terraform-provider-railway

Terraform provider for railway.app
https://registry.terraform.io/providers/terraform-community-providers/railway/latest/docs
Mozilla Public License 2.0
22 stars 1 forks source link

Changing cron schedule is resetting num of replicas to 1 #30

Open pksunkara opened 2 months ago

pksunkara commented 2 months ago

Changing cron schedule through API (or terraform provider) is resetting the num of service replicas to 1. The weird thing is that Railway allows us to set the num of replicas to 2 back again after the cron has been changed.

  1. If cron is always supposed to have replicas set to 1: a. We need to add conflict rule when both replicas and cron settings are set. b. Railway needs to disallow changing num of replicas when cron is set.
  2. If cron doesn't matter for num of replicas: a. Railway needs to not reset the num of replicas when changing cron.

@zuchka Please let me know which way to proceed.

Funding

Fund with Polar

zuchka commented 2 months ago

Hi--turned this into a ticket and passed to product team. Will hear more soon. thanks for this!