Skip to content

Commit b6dd088

Browse files
actually we want to use run - if a worker is offline, powered down, flakey, etc. we dont' want to halt the entire process
1 parent d0c2361 commit b6dd088

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

core/pioreactor/web/tasks.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def update_app_across_cluster(units: str = "$broadcast") -> bool:
333333

334334
logger.debug("Updating app on workers")
335335
update_app_across_all_workers = [PIOS_EXECUTABLE, "update", "-y"]
336-
check_call(update_app_across_all_workers)
336+
run(update_app_across_all_workers)
337337

338338
sleep(2)
339339
logger.debug("Restarting pioreactor-web.target after cluster update")
@@ -342,7 +342,7 @@ def update_app_across_cluster(units: str = "$broadcast") -> bool:
342342

343343
logger.debug(f"Updating app on unit {units}")
344344
update_app_on_specific_unit = [PIOS_EXECUTABLE, "update", "-y", "--units", units]
345-
check_call(update_app_on_specific_unit)
345+
run(update_app_on_specific_unit)
346346
return True
347347

348348

@@ -362,7 +362,7 @@ def update_app_from_release_archive_across_cluster(archive_location: str, units:
362362

363363
logger.debug(f"Updating app on workers from {archive_location}")
364364
distribute_archive_to_workers = [PIOS_EXECUTABLE, "cp", archive_location, "-y"]
365-
check_call(distribute_archive_to_workers)
365+
run(distribute_archive_to_workers)
366366

367367
# this may include leader, and leader's UI. If it's not included, we need to update the UI later.
368368
logger.debug(f"Updating cluster with `pios update --source {archive_location} -y`")
@@ -373,7 +373,7 @@ def update_app_from_release_archive_across_cluster(archive_location: str, units:
373373
archive_location,
374374
"-y",
375375
]
376-
check_call(update_app_across_all_workers)
376+
run(update_app_across_all_workers)
377377
sleep(2)
378378

379379
logger.debug("Restarting pioreactor-web.target after cluster update")
@@ -390,7 +390,7 @@ def update_app_from_release_archive_across_cluster(archive_location: str, units:
390390
"--units",
391391
units,
392392
]
393-
check_call(distribute_archive_to_workers)
393+
run(distribute_archive_to_workers)
394394

395395
update_app_across_all_workers = [
396396
PIOS_EXECUTABLE,
@@ -401,7 +401,7 @@ def update_app_from_release_archive_across_cluster(archive_location: str, units:
401401
"--units",
402402
units,
403403
]
404-
check_call(update_app_across_all_workers)
404+
run(update_app_across_all_workers)
405405
return True
406406

407407

@@ -413,7 +413,7 @@ def update_app_from_release_archive_on_specific_pioreactors(
413413

414414
logger.debug(f"Updating app and ui on unit {pioreactors} from {archive_location}")
415415
distribute_archive_to_workers = [PIOS_EXECUTABLE, "cp", archive_location, "-y", *units_cli]
416-
check_call(distribute_archive_to_workers)
416+
run(distribute_archive_to_workers)
417417

418418
update_app_across_all_workers = [
419419
PIOS_EXECUTABLE,
@@ -423,7 +423,7 @@ def update_app_from_release_archive_on_specific_pioreactors(
423423
"-y",
424424
*units_cli,
425425
]
426-
check_call(update_app_across_all_workers)
426+
run(update_app_across_all_workers)
427427

428428
return True
429429

0 commit comments

Comments
 (0)