Skip to content

SpawnExecutor not discovered by ExecutorFactory — missing service descriptor #7

Closed

Description

@scttfrdmn

Summary

The plugin loads successfully (Plugin started [email protected]) but Nextflow's ExecutorFactory does not discover SpawnExecutor, so executor = 'spawn' in nextflow.config fails with:

Unknown executor name: spawn

Log evidence

INFO  org.pf4j.AbstractPluginManager - Start plugin '[email protected]'
DEBUG nextflow.plugin.BasePlugin - Plugin started [email protected]
DEBUG nextflow.executor.ExecutorFactory - Extension executors providers=[AwsBatchExecutor]
...
DEBUG nextflow.executor.ExecutorFactory - << taskConfig executor: spawn
DEBUG nextflow.executor.ExecutorFactory - >> processorType: 'spawn'
DEBUG nextflow.Session - Session aborted -- Cause: Unknown executor name: spawn
ERROR nextflow.cli.Launcher - Unknown executor name: spawn
java.lang.IllegalArgumentException: Unknown executor name: spawn
    at nextflow.executor.ExecutorFactory.getExecutorClass(ExecutorFactory.groovy:143)

Note: Extension executors providers=[AwsBatchExecutor] — SpawnExecutor is absent.

Root cause

ExecutorFactory discovers extension executors via the ServiceLoader pattern. The plugin needs to declare SpawnExecutor in a service descriptor file at:

META-INF/services/nextflow.executor.Executor

or via the pf4j @Extension annotation on SpawnExecutor plus a corresponding entry in:

META-INF/extensions.idx

Looking at how nf-amazon registers AwsBatchExecutor would clarify the exact mechanism needed.

Context

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