Skip to content

Commit 4188386

Browse files
Handling removed phedex subscriptions in the monitoring
1 parent b9e227b commit 4188386

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

bin/track_transfers

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ def exec_get(sitename):
158158
request_total = 0
159159
request_copied = 0
160160

161+
if len(status) == 0:
162+
record.completed = 1 #old transfer. seems to not exist anymore.
163+
161164
for (site, dataset), (total, copied, last_update) in status.items():
162165

163166
#print dataset
@@ -242,7 +245,7 @@ def exec_get(sitename):
242245
writer.writerow({"id" : ongoing[0], "name" : ongoing[1], "copied" : ongoing[2], "total" : ongoing[3], "stuck" : ongoing[4]})
243246

244247

245-
parallel_exec(exec_get, sites_with_open_transfers, num_threads = min(64, len(sites_with_open_transfers)), print_progress = True, timeout = 12000)
248+
parallel_exec(exec_get, sites_with_open_transfers, num_threads = min(32, len(sites_with_open_transfers)), print_progress = True, timeout = 12000)
246249

247250
for site in sites_with_open_transfers:
248251
for record in records[site]:

0 commit comments

Comments
 (0)