Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a few issues in BatchLogging.groovy
1. Adds the projectId to BatchLogging's LoggingOptions so the logs will be fetched from the correct project. Previously I got a lot of "that resource might not exist" responses from the log read requests. I'm not sure if there's something special about my environment that causes me to need the projectId in the options, but I think it couldn't hurt to have the projectId in general. 2. Removes the old paseOutput function, which relied on the STDERR and STDOUT prefixes in the payload of the log entries. Batch no longer adds those prefixes so that parsing doesn't work. Now we can distinguish stderr from stdout by looking at the logEntry's severity. 3. Catches any exception thrown by the log reading code. It could be a permissions issuee like I was seeing, or a thread pool issuee as in nextflow-io#3166. Either way, something going wrong while trying to read task logs should probably not stop the whole workflow. With these changes, the nf-core/methylseq workflow can be run with the google-batch executor.
- Loading branch information