flat-manager icon indicating copy to clipboard operation
flat-manager copied to clipboard

flat-manager-client should reattach to an in-progress job rather than failing

Open abderrahim opened this issue 6 years ago • 4 comments

After being killed (for instance because of #2) running flat-manager-client with --wait complains the the build is already committed even though the commit is still in progress.

It would be nice if it could still wait for the running job to finish (and if possible, print its output).

abderrahim avatar Mar 03 '19 09:03 abderrahim

If this behaviour isn't 1:1 desirable for Flathub app builds, there could always be a separate parameter for us to use.

nanonyme avatar Mar 03 '19 12:03 nanonyme

I don't think re-running it the same way and doing something else is right, but we should have a way to just connect to and wait for a running job.

alexlarsson avatar Mar 04 '19 09:03 alexlarsson

How do we know though if the commit succeeds or not if backend may return garbage?

nanonyme avatar Mar 04 '19 10:03 nanonyme

Well, the garbage response is just a temporary network issue. You can reconnect to the service and get the status of the job.

alexlarsson avatar Mar 04 '19 10:03 alexlarsson