Closed JonathanMELIUS closed 1 year ago
We'll reproduce - thanks!
Reproduced!
Would you like to submit a pull request with your changes - so that you get credit in the commit log?
Nice, I will submit a pull request right away.
It would be nice that new patch releases are created for such fixes. I've been troubleshooting a long time on my code to find out why I always got the wrong exit code, not knowing that there was a unreleased fix.
I know, it's me own fault that I was looking at the main branch instead of the tagged version, but it also pinpoints the lack of frequent releases. Can we do something to improve release management?
Hi @rmoreas - we'll get 0.4.1 released today.
Not quite as promised - but 0.4.1 is now out. Please open a new issue if you find anything.
Thanks @trel
Bug Report
iRODS Version, OS and Version
iRODS: 4.2.6 Ubuntu 18.04.4 LTS Python virtual environment: 3.10.5 Redis server 4.0.9 Celery 5.2.7 iRODS Automated Ingest Framework 0.4.0
What did you try to do?
I tried to get the exit code after running a ingest job with the synchronous option activated
Expected behavior
I expected the exit code to be
0
when the job was successfully executed. This is important for us to correctly incorporate the iRODS Automated Ingest Framework into our existing ingest workflow.Observed behavior (including steps to reproduce, if applicable)
I get a
255
exit codeThe issue seems to come from this check:
https://github.com/irods/irods_capability_automated_ingest/blob/c60e2cc94f3ccb182c88db2c5bf7dff7b344ed9a/irods_capability_automated_ingest/sync_actions.py#L92
With the synchronous option activated, failures in this case is null|None.
A simple patch would bring the desired outcome: Patch:
New result: