Skip to content

[3008.x] Preserve EventPublisher setproctitle across MasterPubServerChannel respawns - #70126

Open
dwoz wants to merge 1 commit into
saltstack:3008.xfrom
dwoz:dwoz/fix/masterpubserverchannel-preserve-eventpublisher-title-3008x
Open

[3008.x] Preserve EventPublisher setproctitle across MasterPubServerChannel respawns#70126
dwoz wants to merge 1 commit into
saltstack:3008.xfrom
dwoz:dwoz/fix/masterpubserverchannel-preserve-eventpublisher-title-3008x

Conversation

@dwoz

@dwoz dwoz commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Summary

3008.x forward-port of #70124.

ProcessManager.restart_process drops the name= kwarg passed to add_process(name="EventPublisher"), so after any respawn the process title falls back to the __qualname__ MasterPubServerChannel._publish_daemon. grep/pgrep/log correlation on EventPublisher silently breaks the first time the daemon is restarted.

Fix sets the process title explicitly at the top of _publish_daemon so initial fork and every respawn both show EventPublisher. The name="EventPublisher" kwarg on add_process is intentionally kept so the historical label still appears on initial fork.

Sibling of #70111 (same bug pattern, FileserverUpdate).

Test plan

  • New regression test tests/pytests/unit/channel/test_server.py::test_publish_daemon_sets_eventpublisher_process_title.
  • Verified test fails against pre-fix salt/channel/server.py on 3008.x and passes with the fix applied.
  • pre-commit clean on all changed files.
  • CI (test:full label applied).

…spawns

3008.x forward-port of saltstack#70124. ProcessManager.restart_process drops the
name= kwarg, so after respawn the process title falls back to the
__qualname__. Set the title explicitly at the top of _publish_daemon so
initial fork and every respawn both show "EventPublisher".
@dwoz
dwoz requested a review from a team as a code owner August 23, 2026 21:35
@dwoz dwoz added the test:full Run the full test suite label Aug 23, 2026
@dwoz dwoz added this to the Argon v3008.3 milestone Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:full Run the full test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant