zavolanlab / htsinfer

Infer metadata for your downstream analysis straight from your RNA-seq data
Apache License 2.0
9 stars 22 forks source link

Warnings potentially override error state #138

Closed uniqueg closed 10 months ago

uniqueg commented 10 months ago

Currently, it is possible that the run state will be set to state RunStates.WARNING even though it was previously already set to RunStates.ERROR. However, an error state should always trump a warning state, which may be treated differently by downstream applications.

Therefore, it is necessary to ensure that the state has not been already changed from RunStates.OKAY before setting a warning state.