@@ -133,10 +133,6 @@ def get_job_state(job_id):
133
133
states_dic [0 ] = "COMPLETED"
134
134
states_dic [1 ] = "FAILED"
135
135
states_dic [2 ] = "FAILED"
136
- < << << << Updated upstream
137
- == == == =
138
-
139
- >> >> >> > Stashed changes
140
136
141
137
#### Beginning of connectome ####
142
138
connectomes_status = {}
@@ -223,7 +219,6 @@ def get_job_state(job_id):
223
219
json .dump (subjects_state , json_file , indent = 4 )
224
220
225
221
226
- << << << < Updated upstream
227
222
update_active_subjects (scratch_path , cluster_name )
228
223
229
224
active_subject_cmd = subprocess .check_output (f"rsync -az { complementary_cluster_login } { scratch_path } /ukbb/scripts/data/active_subjects_{ complementary_cluster_name } .json" , shell = True , text = True )
@@ -232,14 +227,17 @@ def get_job_state(job_id):
232
227
233
228
active_subject_cmd = subprocess .check_output (f"rsync -az { outside_cluster_login } { scratch_path } /ukbb/scripts/data/active_subjects_{ outside_cluster_name } .json" , shell = True , text = True )
234
229
print ("Updating active subjects (outside):" ,active_subject_cmd )
235
- == == == =
236
230
#update_active_subjects(scratch_path, cluster_name)
237
- >> >> >> > Stashed changes
238
-
239
-
240
- active_subject_cmd = subprocess .check_output (f"rsync - az {complementary_cluster_login } {scratch_path }/ ukbb / scripts / data / active_subjects_ {complementary_cluster_name }.json ", shell = True , text = True )
241
- print ("Updating active subjects (complementary ):",active_subject_cmd )
242
231
243
- active_subject_cmd = subprocess .check_output (f"rsync - az {outside_cluster_login } {scratch_path }/ ukbb / scripts / data / active_subjects_ {outside_cluster_name }.json ", shell = True , text = True )
244
- print ("Updating active subjects (outside ):",active_subject_cmd )
232
+ try :
233
+ active_subject_cmd = subprocess .check_output (f"rsync -az { complementary_cluster_login } { scratch_path } /ukbb/scripts/data/active_subjects_{ complementary_cluster_name } .json" , shell = True , text = True )
234
+ print ("Updating active subjects (complementary):" ,active_subject_cmd )
235
+ except Exception as e :
236
+ print (e )
237
+
238
+ try :
239
+ active_subject_cmd = subprocess .check_output (f"rsync -az { outside_cluster_login } { scratch_path } /ukbb/scripts/data/active_subjects_{ outside_cluster_name } .json" , shell = True , text = True )
240
+ print ("Updating active subjects (outside):" ,active_subject_cmd )
241
+ except Exception as e :
242
+ print (e )
245
243
0 commit comments