Skip to content

Commit 1c0ffeb

Browse files
authored
[cherypick]fix fleetutil get_online_pass_interval bug (#60102)
* fix fleetutil get_online_pass_interval bug; test=develop * fix fleetutil get_online_pass_interval bug; test=develop
1 parent f08e785 commit 1c0ffeb

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

python/paddle/incubate/distributed/fleet/fleet_util.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,7 +1317,23 @@ def get_online_pass_interval(
13171317
... is_data_hourly_placed=False)
13181318
13191319
"""
1320+
assert (
1321+
"|" not in days
1322+
and ";" not in days
1323+
and "\\" not in days
1324+
and "/" not in days
1325+
and "(" not in days
1326+
and ")" not in days
1327+
), r"days should not contain [|,;,\,/,(,)]"
13201328
days = os.popen("echo -n " + days).read().split(" ")
1329+
assert (
1330+
"|" not in hours
1331+
and ";" not in hours
1332+
and "\\" not in hours
1333+
and "/" not in hours
1334+
and "(" not in hours
1335+
and ")" not in days
1336+
), r"hours should not contain [|,;,\,/,(,)]"
13211337
hours = os.popen("echo -n " + hours).read().split(" ")
13221338
split_interval = int(split_interval)
13231339
split_per_pass = int(split_per_pass)

0 commit comments

Comments
 (0)