nextflow.executor.StoredTaskHandler.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nextflow Show documentation
Show all versions of nextflow Show documentation
A DSL modelled around the UNIX pipe concept, that simplifies writing parallel and scalable pipelines in a portable manner
package nextflow.executor
import groovy.transform.CompileStatic
import nextflow.processor.TaskHandler
import nextflow.processor.TaskRun
import nextflow.trace.TraceRecord
/**
* Implements a {@link TaskHandler} instance for nextflow stored task ie.
* tasks whose execution is skipped due the use of the `storeDir` directive.
*
* @author Paolo Di Tommaso
*/
@CompileStatic
class StoredTaskHandler extends TaskHandler {
StoredTaskHandler(TaskRun task) {
super(task)
}
@Override
boolean checkIfRunning() {
return false
}
@Override
boolean checkIfCompleted() {
return true
}
@Override
void kill() {
throw new UnsupportedOperationException()
}
@Override
void submit() {
throw new UnsupportedOperationException()
}
@Override
String getStatusString() {
"STORED"
}
/**
* @return Stored tasks are not supposed to have a trace record, therefore returns {@code null}
*/
@Override
TraceRecord getTraceRecord() {
return null
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy