Skip to content

SpawnExecutor.createTaskMonitor uses removed TaskPollingMonitor.create signature (Nextflow 26.x) #9

Closed

Description

@scttfrdmn

Summary

SpawnExecutor.createTaskMonitor() calls TaskPollingMonitor.create(session, name, int, Duration) but this method was removed in Nextflow 26.x, causing:

java.lang.NoSuchMethodError: 'nextflow.processor.TaskPollingMonitor 
nextflow.processor.TaskPollingMonitor.create(nextflow.Session, java.lang.String, int, nextflow.util.Duration)'
    at io.nextflow.spawn.SpawnExecutor.createTaskMonitor(SpawnExecutor.groovy:37)

Environment

  • Nextflow 26.04.3 (build 12259)
  • nf-spawn 0.1.3
  • [email protected] declared in plugins block

Context

The executor registration issue (#7) is fixed in v0.1.3. The plugin now loads and Nextflow recognises executor = 'spawn'. It fails only when the first process tries to initialise the executor and calls createTaskMonitor.

The AbstractExecutor base class likely provides a default createTaskMonitor implementation that uses the correct updated signature. Overriding it in SpawnExecutor with the old signature breaks on 26.x.

Fix

Either remove the createTaskMonitor override in SpawnExecutor (let it inherit from AbstractExecutor), or update it to use the current Nextflow 26.x API.

Repro

Running nf-core/taxprofiler against Nextflow 26.04.3 with executor = 'spawn' in nextflow.config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions