MonashBioinformaticsPlatform / laxy

Laxy Genomics Pipelines
Apache License 2.0
3 stars 1 forks source link

bulk_move_job_rsync not correctly catching non-zero exit code from rsync #224

Open pansapiens opened 2 years ago

pansapiens commented 2 years ago

When the rsync subprocess in laxy_backend.tasks.job.bulk_move_job_rsync fails, sometimes a non-zero error code is not being captured on failure to be bubbled up to Celery task failure.

Example: Disk quota exceeded (122) rsync error: error in file IO (code 11) at receiver.c(393) [receiver=3.1.2] rsync: [generator] write error: Broken pipe (32) rsync error: error in socket IO (code 10) at io.c(829) [generator=3.1.2] does not result in a failed task.