Skip to content

Commit

Permalink
Merge branch 'main' into test_under_slurm
Browse files Browse the repository at this point in the history
  • Loading branch information
djperrefort committed Oct 17, 2023
2 parents d537e40 + 7b5291d commit 78374bd
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 128 deletions.
6 changes: 3 additions & 3 deletions shinigami/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ def __init__(self) -> None:
scan = subparsers.add_parser('scan', parents=[common], help='terminate processes on one or more clusters')
scan.set_defaults(callable=Application.scan)
scan.add_argument('-c', '--clusters', nargs='+', required=True, help='cluster names to scan')
scan.add_argument('-i', '--ignore-nodes', nargs='*', help='ignore given nodes')
scan.add_argument('-u', '--uid-whitelist', nargs='+', type=loads, required=True, help='user IDs to scan')
scan.add_argument('-i', '--ignore-nodes', nargs='*', default=[], help='ignore given nodes')
scan.add_argument('-u', '--uid-whitelist', nargs='+', type=loads, default=[0], help='user IDs to scan')

# Subparser for the `Application.terminate` method
terminate = subparsers.add_parser('terminate', parents=[common], help='terminate processes on a single node')
terminate.set_defaults(callable=Application.terminate)
terminate.add_argument('-n', '--nodes', nargs='+', required=True, help='the DNS name of the node to terminate')
terminate.add_argument('-u', '--uid-whitelist', nargs='+', type=loads, required=True, help='user IDs to scan')
terminate.add_argument('-u', '--uid-whitelist', nargs='+', type=loads, default=[0], help='user IDs to scan')


class Application:
Expand Down
79 changes: 0 additions & 79 deletions shinigami/settings.py

This file was deleted.

Empty file removed tests/settings/__init__.py
Empty file.
46 changes: 0 additions & 46 deletions tests/settings/test_settings.py

This file was deleted.

0 comments on commit 78374bd

Please sign in to comment.