ganga-devs / ganga

Ganga is an easy-to-use frontend for job definition and management
GNU General Public License v3.0
100 stars 159 forks source link

Ganga crashes when banned sites set to empty list #2352

Closed fabudine closed 5 months ago

fabudine commented 5 months ago

If the banned sites for a job j are set to

j.backend.settings['BannedSites'] = []

Ganga crashes because setBannedSites wants either a filled list or a single name as input.

mesmith75 commented 5 months ago

Could you give more information as to what the crash says? When does it crash?

fabudine commented 5 months ago

It crashes after the job has been submitted to the grid. It creates input tarball etc, and then you get a DIRAC error such as

^[[0;31mERROR    Job submission failed for job 3.0 : DIRAC error!^[[0;0m
fabudine commented 5 months ago

Unfortunately I overwrote the DEBUG log. But it was saying exactly what I wrote in the description. That setBannedSites([]) caused an error because it expects either a list of strings or a single string, not an empty list.

mesmith75 commented 5 months ago

I see, so its on job submission. Thanks

mesmith75 commented 5 months ago

Issue is in the DIRAC API.