Skip to content

Commit

Permalink
Fixes bug where slurm users are terminated (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
djperrefort authored Dec 20, 2023
1 parent 0310e0c commit 6c6b108
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shinigami/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,11 @@ async def terminate_errant_processes(
process_df = await get_remote_processes(conn)

# Filter process data by various whitelist/blacklist criteria
# Outputs from each filter function call are passed to the next filter
# so the order of the function calls matter significantly
process_df = exclude_active_slurm_users(process_df)
process_df = include_orphaned_processes(process_df)
process_df = include_user_whitelist(process_df, uid_whitelist)
process_df = exclude_active_slurm_users(process_df)

for _, row in process_df.iterrows(): # pragma: nocover
logging.info(f'[{node}] Marking for termination {dict(row)}')
Expand Down

0 comments on commit 6c6b108

Please sign in to comment.