Skip to content
Snippets Groups Projects
Commit f5f28ae9 authored by Maël Madon's avatar Maël Madon
Browse files

harmonize job validity condition between swf_filter and swf_split_by_user

parent 3a5dd444
Branches
No related tags found
No related merge requests found
...@@ -51,8 +51,8 @@ def filter_workload(input_swf:str, output_swf:str=None, ...@@ -51,8 +51,8 @@ def filter_workload(input_swf:str, output_swf:str=None,
partition_id = int(res.group(SwfField.PARTITION_ID.value)) partition_id = int(res.group(SwfField.PARTITION_ID.value))
# Select jobs to keep # Select jobs to keep
is_valid_job = (nb_res > 0 and walltime > is_valid_job = (nb_res > 0 and walltime >=
run_time and run_time > 0 and submit_time >= 0) run_time and run_time >= 0 and submit_time >= 0)
select_partition = ((partitions_to_select is None) or select_partition = ((partitions_to_select is None) or
(partition_id in partitions_to_select)) (partition_id in partitions_to_select))
use_job = select_partition and ( use_job = select_partition and (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment