i-VRESSE / bartender

Middleware web service to schedule jobs on various infrastructures
https://i-vresse-bartender.readthedocs.io
Apache License 2.0
1 stars 0 forks source link

Route to download job files as archive #66

Closed sverhoeven closed 9 months ago

sverhoeven commented 1 year ago

Would be nice to offer a route to download the input files and output files of a job.

For haddock3 the output is always written to output/ sub directory, while the input archive is unpacked in the root of the job directory.

To download input files we could use GET /jobs/{jobid}/archive?exclude=output To download output files we could use GET /jobs/{jobid}/archive/output. To download all files we could use GET /jobs/{jobid}/archive.

The archive format could be zip or tar.gz,tar.bz2,.tar.xz . Format could be configurable with accept header or a query parameter.

sverhoeven commented 1 year ago

I would be nice to exclude multiple things like output, Stdout, Stderr.

This can be done with multiple exclude query parameters as described at https://fastapi.tiangolo.com/tutorial/query-params-str-validations/#__tabbed_15_2 . This only works since fastapi v0.95.2

sverhoeven commented 9 months ago

Fixed in #70