File tree Expand file tree Collapse file tree 5 files changed +34
-21
lines changed
web-api/platypus/platypus
ServiceModels/KubernetesModels/Templates/ConfigMap Expand file tree Collapse file tree 5 files changed +34
-21
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,8 @@ def list_path_pairs(id):
188
188
api = rest .DataSetApi (configuration .get_api_client ())
189
189
result = api .list_dataset_pathpairs (id )
190
190
for x in result :
191
- print (x .data_path + " " + x .stored_path )
191
+ print (repr (x .data_path )[1 :- 1 ])
192
+ print (repr (x .stored_path )[1 :- 1 ])
192
193
193
194
@data_set .command ('list-data-types' )
194
195
def list_data_types ():
Original file line number Diff line number Diff line change @@ -35,19 +35,19 @@ protected override void Up(MigrationBuilder migrationBuilder)
35
35
name : "LocalDataSet" ,
36
36
table : "TrainingHistories" ,
37
37
nullable : false ,
38
- defaultValue : false ) ;
38
+ defaultValue : true ) ;
39
39
40
40
migrationBuilder . AddColumn < bool > (
41
41
name : "LocalDataSet" ,
42
42
table : "NotebookHistories" ,
43
43
nullable : false ,
44
- defaultValue : false ) ;
44
+ defaultValue : true ) ;
45
45
46
46
migrationBuilder . AddColumn < bool > (
47
47
name : "LocalDataSet" ,
48
48
table : "InferenceHistories" ,
49
49
nullable : false ,
50
- defaultValue : false ) ;
50
+ defaultValue : true ) ;
51
51
}
52
52
53
53
protected override void Down ( MigrationBuilder migrationBuilder )
Original file line number Diff line number Diff line change @@ -17,13 +17,17 @@ data:
17
17
fi
18
18
19
19
# default: create symlink to raw-data, $LOCAL_DATASET = True : copy raw-data to local
20
- prepare_cmd='ln -s "/kqi/raw/${stored_path}" "/kqi/input/${file_path }"'
20
+ prepare_cmd='ln -s "/kqi/raw/${stored_path}" "/kqi/input/${file_path_c_quote }"'
21
21
if [ $LOCAL_DATASET = "True" ]; then
22
- prepare_cmd='cp "/kqi/raw/${stored_path}" "/kqi/input/${file_path }"'
22
+ prepare_cmd='cp "/kqi/raw/${stored_path}" "/kqi/input/${file_path_c_quote }"'
23
23
fi
24
- while read file_path stored_path
24
+ while true
25
25
do
26
- mkdir -p "/kqi/input/$(dirname ${file_path})" && eval ${prepare_cmd}
26
+ read -r file_path
27
+ read -r stored_path
28
+ if [ -z "$stored_path" ] ; then break; fi
29
+ printf -v file_path_c_quote %b "$file_path"
30
+ mkdir -p /kqi/input/$(dirname "${file_path}") && eval ${prepare_cmd}
27
31
if [ $? -ne 0 ]; then
28
32
echo "create dataset failed"
29
33
kqi inference halt $TRAINING_ID
Original file line number Diff line number Diff line change @@ -19,17 +19,21 @@ data:
19
19
echo "dataset get failed"
20
20
fi
21
21
# default: create symlink to raw-data, $LOCAL_DATASET = True : copy raw-data to local
22
- prepare_cmd='ln -s "/kqi/raw/${stored_path}" "/kqi/input/${file_path }"'
22
+ prepare_cmd='ln -s "/kqi/raw/${stored_path}" "/kqi/input/${file_path_c_quote }"'
23
23
if [ $LOCAL_DATASET = "True" ]; then
24
- prepare_cmd='cp "/kqi/raw/${stored_path}" "/kqi/input/${file_path }"'
24
+ prepare_cmd='cp "/kqi/raw/${stored_path}" "/kqi/input/${file_path_c_quote }"'
25
25
fi
26
- while read file_path stored_path
26
+ while true
27
27
do
28
- mkdir -p "/kqi/input/$(dirname ${file_path})" && eval ${prepare_cmd}
29
- if [ $? -ne 0 ]; then
30
- echo "create dataset failed"
31
- exit 0
32
- fi
28
+ read -r file_path
29
+ read -r stored_path
30
+ if [ -z "$stored_path" ] ; then break; fi
31
+ printf -v file_path_c_quote %b "$file_path"
32
+ mkdir -p /kqi/input/$(dirname "${file_path}") && eval ${prepare_cmd}
33
+ if [ $? -ne 0 ]; then
34
+ echo "create dataset failed"
35
+ exit 0
36
+ fi
33
37
done </kqi/tmp/datapairs.txt
34
38
fi
35
39
main : |
Original file line number Diff line number Diff line change @@ -17,19 +17,23 @@ data:
17
17
fi
18
18
19
19
# default: create symlink to raw-data, $LOCAL_DATASET = True : copy raw-data to local
20
- prepare_cmd='ln -s "/kqi/raw/${stored_path}" "/kqi/input/${file_path }"'
20
+ prepare_cmd='ln -s "/kqi/raw/${stored_path}" "/kqi/input/${file_path_c_quote }"'
21
21
if [ $LOCAL_DATASET = "True" ]; then
22
- prepare_cmd='cp "/kqi/raw/${stored_path}" "/kqi/input/${file_path }"'
22
+ prepare_cmd='cp "/kqi/raw/${stored_path}" "/kqi/input/${file_path_c_quote }"'
23
23
fi
24
- while read file_path stored_path
24
+ while true
25
25
do
26
- mkdir -p "/kqi/input/$(dirname ${file_path})" && eval ${prepare_cmd}
26
+ read -r file_path
27
+ read -r stored_path
28
+ if [ -z "$stored_path" ] ; then break; fi
29
+ printf -v file_path_c_quote %b "$file_path"
30
+ mkdir -p /kqi/input/$(dirname "${file_path}") && eval ${prepare_cmd}
27
31
if [ $? -ne 0 ]; then
28
32
echo "create dataset failed"
29
33
kqi training halt $TRAINING_ID
30
34
exit 0
31
35
fi
32
- done </kqi/tmp/datapairs.txt
36
+ done </kqi/tmp/datapairs.txt
33
37
main : |
34
38
bash /kqi/scripts/common/wait-ready
35
39
cd /kqi/git
You can’t perform that action at this time.
0 commit comments