Skip to content

Commit

Permalink
fix fleetutil get_online_pass_interval bug2; test=develop (PaddlePadd…
Browse files Browse the repository at this point in the history
  • Loading branch information
danleifeng committed Jan 4, 2024
1 parent 83ce809 commit ae2e588
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions python/paddle/incubate/distributed/fleet/fleet_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1324,16 +1324,18 @@ def get_online_pass_interval(
and "/" not in days
and "(" not in days
and ")" not in days
), r"days should not contain [|,;,\,/,(,)]"
and "&" not in days
), r"days should not contain [|,;,\,/,(,),&]"
days = os.popen("echo -n " + days).read().split(" ")
assert (
"|" not in hours
and ";" not in hours
and "\\" not in hours
and "/" not in hours
and "(" not in hours
and ")" not in days
), r"hours should not contain [|,;,\,/,(,)]"
and ")" not in hours
and "&" not in hours
), r"hours should not contain [|,;,\,/,(,),&]"
hours = os.popen("echo -n " + hours).read().split(" ")
split_interval = int(split_interval)
split_per_pass = int(split_per_pass)
Expand Down

0 comments on commit ae2e588

Please sign in to comment.