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

aggregate PA message playback #869

Merged
merged 1 commit into from
Jan 14, 2025
Merged

aggregate PA message playback #869

merged 1 commit into from
Jan 14, 2025

Conversation

panentheos
Copy link
Collaborator

Summary of changes

Asana Ticket: Revise RTS to remove PA Message bottleneck failures in Legacy PA/ESS

This changes the playback code for PA messages to send a single aggregate message to all targeted zones within a station, instead of individual per-sign messages. This involves moving the responsibility for playback into the PA message engine, and having the signs just provide their configs (and continue to track playbacks in order to guard against accidental duplicates).

@panentheos panentheos requested a review from a team as a code owner January 13, 2025 15:06
Comment on lines +67 to +71
for sign_id <- message.sign_ids,
{sign, should_play?} = GenServer.call(:"Signs/#{sign_id}", {:play_pa_message, message}),
should_play? do
sign
end
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any thoughts on calling out to all the sign processes concurrently using Task?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think using Task would be overkill here, since this call should complete more or less instantly.

Copy link
Collaborator

@PaulJKim PaulJKim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me!

@panentheos panentheos merged commit 564acf1 into main Jan 14, 2025
2 checks passed
@panentheos panentheos deleted the bhw/pa-messages branch January 14, 2025 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants