See "No more WARNING state on script tasks when ERROR logs are present" section here https://github.com/kestra-io/plugin-scripts/issues/233