Skip to content

Fix supervisorctl clear for process groups - #1727

Open
00200200 wants to merge 1 commit into
Supervisor:mainfrom
00200200:fix-clear-group-wildcard
Open

00200200 wants to merge 1 commit into
Supervisor:mainfrom
00200200:fix-clear-group-wildcard

Conversation

@00200200

Copy link
Copy Markdown

Summary

  • supervisorctl clear group:* treated * as a missing process name, so multiprocess programs (numprocs > 1) printed group:None and never cleared logs (#1589).
  • clear now expands a group the same way start and stop already do, and XML-RPC gains supervisor.clearProcessGroupLogs.

Test plan

  • Added test_clear_group, test_clear_group_empty_process_name, and test_clear_group_bad_name (failing with foo:None: cleared before the fix).
  • Added RPC tests for clearProcessGroupLogs (success, one failure, missing group, empty group).
  • PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 python3 -m pytest supervisor/tests -q --ignore=supervisor/tests/test_end_to_end.py → 1392 passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant