Repository navigation
fix: register SpawnExecutor for ExecutorFactory discovery (#7) - #8
Merged
Merged
Conversation
The plugin loaded but Nextflow's ExecutorFactory never discovered SpawnExecutor, so `executor = 'spawn'` failed with "Unknown executor name: spawn". pf4j extension discovery needs both: - @extension on SpawnExecutor (the annotation; added). - META-INF/extensions.idx listing io.nextflow.spawn.SpawnExecutor. The pf4j annotation processor doesn't run reliably under Groovy, so Nextflow core plugins ship this index file explicitly — added. Also fix the stale plugin manifest: META-INF/nextflow.plugins had version=0.1.0 (build was 0.1.2). Replaced the literal with an @Version@ token filtered from the build version via processResources, so it can't drift again. Verified the built jar contains META-INF/extensions.idx, the @extension RuntimeVisibleAnnotation on SpawnExecutor, and a manifest filtered to 0.1.2. Closes #7.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #7.
The plugin loaded (
Plugin started [email protected]) but Nextflow'sExecutorFactorynever discoveredSpawnExecutor—Extension executors providers=[AwsBatchExecutor]with SpawnExecutor absent — soexecutor = 'spawn'failed withUnknown executor name: spawn.Fix
pf4j extension discovery needs both of these, and the plugin had neither:
@Extensionannotation onSpawnExecutor(added).META-INF/extensions.idxlistingio.nextflow.spawn.SpawnExecutor(added). The pf4j annotation processor doesn't run reliably under Groovy, so Nextflow core plugins ship this index file explicitly rather than relying on annotation processing.Also fixed
META-INF/nextflow.pluginsdeclaredversion=0.1.0while the build was0.1.2(stale). Replaced the literal with an@version@token filtered fromproject.versionviaprocessResources(ReplaceTokens), so the manifest version can't drift frombuild.gradleagain.Verified in the built jar
META-INF/extensions.idx→io.nextflow.spawn.SpawnExecutor@Extensionpresent as aRuntimeVisibleAnnotation(Lorg/pf4j/Extension;) onSpawnExecutor.classMETA-INF/nextflow.pluginsfiltered toversion=0.1.2Builds clean via
./gradlew jar(Gradle 8.8 wrapper, JDK 17).