Web UI shows "Completed" status for failed job

Please describe what you are doing to trigger the bug:

Run duplicacy job with an invalid global option.

Please describe what you expect to happen (but doesn’t):

Web UI should show “Failed” status.

Please describe what actually happens (the wrong behaviour):

Web UI shows “Completed” status:

Running backup command from /share/CACHEDEV1_DATA/.qpkg/Duplicacy/.duplicacy-web/repositories/localhost/9 to back up /share/Test
Options: [-log invalid-global-option backup -storage NAS0 -dry-run -stats]
No help topic for 'invalid-global-option'

I suspect the problem is that the duplicacy CLI exit status is 0.

Right, invalid-global-option was treated as a command and the CLI doesn’t handle invalid commands well. I’ll fix it in the next CLI release.