Skip to content

Conversation

@bentsherman
Copy link
Member

This PR moves the error formatting logic in TaskProcessor into a separate class TaskErrorFormatter

  • Reduces cognitive load of reading TaskProcessor, one of the largest classes in the Nextflow runtime

  • The new class has static compilation enabled, so better error checking

Over time I hope to decouple more pieces from the TaskProcessor hairball in order to make it easier to work with, especially as we continue to evolve with static types and standalone module execution.

The error formatting is a pretty clean cut, so I'm doing it first

@netlify
Copy link

netlify bot commented Nov 7, 2025

Deploy Preview for nextflow-docs-staging ready!

Name Link
🔨 Latest commit fb7ce88
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/6916403561e75000088e3e3d
😎 Deploy Preview https://deploy-preview-6551--nextflow-docs-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Signed-off-by: Ben Sherman <bentshermann@gmail.com>
Copy link
Member

@pditommaso pditommaso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good opportunity to add unit to add unit tests for TaskErrorFormatter public methods

Signed-off-by: Ben Sherman <bentshermann@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants