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

Add maintenance mode handling #269

Open
Maelstromeous opened this issue Jan 22, 2021 · 2 comments
Open

Add maintenance mode handling #269

Maelstromeous opened this issue Jan 22, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request p3 Minor issues

Comments

@Maelstromeous
Copy link
Member

Maelstromeous commented Jan 22, 2021

Right now, to handle PS2 maintenance I have to turn off the Aggregator manually, and there's no reflection of PS2 maintenance on the website.

In order to do this, will likely have to add an authority to check a table to see if any records match the current time. Each record needs "has passed" flag, so we can query for windows that have not passed, check the start time and end time and see if current time is within that window.

When we are in maintenance, the following needs to happen:

  1. Stop all active alerts (PS2 server should stop it anyway via metagame event ends but it has beenknown for them to be missed)
  2. Disconnect from the websocket if all servers are down

When server comes out of maintenance (or any server) we need to reconnect.

The API also needs to track this and return a simple True or False to then be picked up by the website.

@Maelstromeous Maelstromeous added the enhancement New feature or request label Jan 22, 2021
@microwavekonijn
Copy link
Member

microwavekonijn commented Jan 22, 2021

Did the serviceState event not work? Also the websocket remains online during maintenance, so there is no need to diconnect as far as I know.

@Maelstromeous
Copy link
Member Author

Maelstromeous commented Jan 22, 2021 via email

@Maelstromeous Maelstromeous added this to the Aggregator v4.2 milestone Mar 7, 2022
@Maelstromeous Maelstromeous added the p3 Minor issues label Mar 7, 2022
@Maelstromeous Maelstromeous self-assigned this Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request p3 Minor issues
Projects
Status: Todo
Development

No branches or pull requests

2 participants