Only guessing but I was tempted to do the same because there’s a potential for race condition (explained here: Streaming from background job and race conditions), but (in my case at least) it’s 100% a hack.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Why does broadcast_refresh need to be in a background job?
|
1 | 103 | February 10, 2025 | |
What is the right place to broadcast from?
|
2 | 449 | August 21, 2023 | |
Broadcasting (or transmitting?) user-specific information
|
4 | 1608 | July 27, 2023 | |
Turbo Streams - How to properly structure logic for live updates from background job?
|
1 | 838 | February 28, 2021 | |
Ensure turbo_frame_tag requests src after turbo_stream_from is connected
|
25 | 2937 | October 12, 2023 |