Commit c5491f0
perf(webapp,run-engine): skip dev worker notifications for non-dev runs
Run state notifications were broadcast to both the deployed worker and
dev worker socket.io namespaces for every run, regardless of
environment. The dev worker namespace only accepts connections from
development environments, so that second broadcast was discarded for
every non-development run.
Notifications now reach the dev worker namespace only for runs in a
development environment. This removes the redundant broadcast and
roughly halves the Redis pub/sub traffic generated by the run
notification path.
Mono-RevId: 84cb5aead09067daeb979d793e3974c2a1da57c81 parent fdec5a0 commit c5491f0
3 files changed
Lines changed: 14 additions & 4 deletions
File tree
- apps/webapp/app/v3
- internal-packages/run-engine/src/engine
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
690 | 690 | | |
691 | 691 | | |
692 | 692 | | |
693 | | - | |
694 | | - | |
695 | | - | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
696 | 698 | | |
697 | 699 | | |
698 | 700 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 | | |
4 | 8 | | |
5 | 9 | | |
| |||
324 | 328 | | |
325 | 329 | | |
326 | 330 | | |
| 331 | + | |
327 | 332 | | |
328 | 333 | | |
329 | 334 | | |
| |||
383 | 388 | | |
384 | 389 | | |
385 | 390 | | |
| 391 | + | |
386 | 392 | | |
387 | 393 | | |
388 | 394 | | |
| |||
394 | 400 | | |
395 | 401 | | |
396 | 402 | | |
| 403 | + | |
397 | 404 | | |
398 | 405 | | |
399 | 406 | | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
| 396 | + | |
396 | 397 | | |
397 | 398 | | |
398 | 399 | | |
| |||
0 commit comments