Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pksunkara opened this issue Jul 16, 2024 · 1 comment
Open

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

pksunkara opened this issue Jul 16, 2024 · 1 comment
Labels
C: service Context: Service D1: easy Difficulty: Easy to implement E: service External: Service T: bug Type: Bug fix U1: want to have Urgency: Want to have W: external Waiting: External

Comments

@pksunkara
Copy link
Contributor

pksunkara commented Jul 16, 2024

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

  • You can sponsor this specific effort via a Polar.sh pledge below
  • We receive the pledge once the issue is completed & verified
Fund with Polar
@pksunkara pksunkara added E: service External: Service D1: easy Difficulty: Easy to implement T: bug Type: Bug fix U1: want to have Urgency: Want to have W: external Waiting: External C: service Context: Service labels Jul 16, 2024
@zuchka
Copy link

zuchka commented Jul 16, 2024

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

@pksunkara pksunkara changed the title Change cron schedule is resetting num of replicas to 1 Changing cron schedule is resetting num of replicas to 1 Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: service Context: Service D1: easy Difficulty: Easy to implement E: service External: Service T: bug Type: Bug fix U1: want to have Urgency: Want to have W: external Waiting: External
Development

No branches or pull requests

2 participants