Skip to content

Commit

Permalink
Feat/seed vip (#728)
Browse files Browse the repository at this point in the history
* Don't endlessly loop seed vip; defer to supervisord for restarts

---------

Signed-off-by: C. Eric Mathey <48801688+cemathey@users.noreply.github.com>
  • Loading branch information
cemathey authored Oct 17, 2024
1 parent 2d6c289 commit ba9b115
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions config/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ autorestart=true
[program:seed_vip]
command=/code/manage.py seed_vip
environment=LOGGING_FILENAME=seed_vip_%(ENV_SERVER_NUMBER)s.log
startretries=10
startretries=5
autostart=true
autorestart=true
autorestart=unexpected


[program:log_event_loop]
Expand Down
8 changes: 4 additions & 4 deletions rcon/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@ def run_expiring_vips():

@cli.command(name="seed_vip")
def run_seed_vip():
config = SeedVIPUserConfig.load_from_db()
if config.enabled:
try:
rcon.seed_vip.service.run()
else:
logger.info("Seed VIP is not enabled")
except:
logger.exception("seed VIP stopped")
sys.exit(1)


@cli.command(name="automod")
Expand Down

0 comments on commit ba9b115

Please sign in to comment.