It4innovations / hyperqueue

Scheduler for sub-node tasks for HPC systems with batch scheduling
https://it4innovations.github.io/hyperqueue
MIT License
266 stars 20 forks source link

Error with PythonAPI : stdout/-err = None #691

Closed Pengu1ne closed 3 months ago

Pengu1ne commented 3 months ago

Hi!

I just updated my HyperQueue (with Python API) to the newest version (v018). I tried to run it, but I got an error:

hyperqueue.validation.ValidationException: Invalid value provided for `stdout`: <class 'NoneType'>. Expected str, Path or `StdioDef`.

The specific line looks something like:

            arg_params =(parameters,
                         syst_name,
                         input)
            job.function(calc_process,
                         args=arg_params,
                         stdout=None,
                         stderr=None)

I tested that HyperQueue + my application runs without a problem with v016. I tracked the changes and noticed that after v016, the stdout and stderr are changed. Because v016 works for me, I can use it, but just that you are aware if this not in purpose.

Kobzol commented 3 months ago

This was not intended, thank you for reporting it.