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 canceled.

Name Link
🔨 Latest commit febdfa4
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/690e7eb86056e60008738661

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

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