XENONnT / utilix

Package for XENON members to easily interface with RunDB, Midway batch queue, maybe Rucio (others?).
0 stars 6 forks source link

Set default `bypass_validation` as empty list #99

Closed dachengx closed 7 months ago

dachengx commented 7 months ago

Before this PR, when submitting any job, an error shows:

pydantic.error_wrappers.ValidationError: 1 validation error for JobSubmission
bypass_validation
  none is not an allowed value (type=type_error.none.not_allowed)

because we assigned default bypass_validation as None: https://github.com/XENONnT/utilix/blob/6c39370a8f5c972571b0366bdee78abcec69da9e/utilix/batchq.py#L498