@@ -609,33 +609,18 @@ Technical outline of how cwltool works internally, for maintainers.
609
609
Extension points
610
610
----------------
611
611
612
- The following functions can be provided to main(), to load_tool(), or to the
613
- executor to override or augment the listed behaviors.
612
+ The following functions can be passed to main() to override or augment
613
+ the listed behaviors.
614
614
615
615
executor
616
616
::
617
617
618
- executor(tool, job_order_object, **kwargs )
619
- (Process, Dict[Text, Any], **Any ) -> Tuple[Dict[Text, Any], Text]
618
+ executor(tool, job_order_object, runtimeContext, logger )
619
+ (Process, Dict[Text, Any], RuntimeContext ) -> Tuple[Dict[Text, Any], Text]
620
620
621
- A toplevel workflow execution loop, should synchronously execute a process
622
- object and return an output object.
623
-
624
- construct_tool_object
625
- ::
626
-
627
- construct_tool_object(toolpath_object, **kwargs)
628
- (Dict[Text, Any], **Any) -> Process
629
-
630
- Hook to construct a Process object (eg CommandLineTool) object from a document.
631
-
632
- selectResources
633
- ::
634
-
635
- selectResources(request)
636
- (Dict[Text, int]) -> Dict[Text, int]
637
-
638
- Take a resource request and turn it into a concrete resource assignment.
621
+ An implementation of the toplevel workflow execution loop, should
622
+ synchronously run a process object to completion and return the
623
+ output object.
639
624
640
625
versionfunc
641
626
::
@@ -645,13 +630,16 @@ versionfunc
645
630
646
631
Return version string.
647
632
648
- make_fs_access
633
+ logger_handler
649
634
::
650
635
651
- make_fs_access(basedir)
652
- (Text) -> StdFsAccess
636
+ logger_handler
637
+ logging.Handler
653
638
654
- Return a file system access object.
639
+ Handler object for logging.
640
+
641
+ The following functions can be set in LoadingContext to override or
642
+ augment the listed behaviors.
655
643
656
644
fetcher_constructor
657
645
::
@@ -669,10 +657,47 @@ resolver
669
657
670
658
Resolve a relative document identifier to an absolute one which can be fetched.
671
659
672
- logger_handler
660
+ The following functions can be set in RuntimeContext to override or
661
+ augment the listed behaviors.
662
+
663
+ construct_tool_object
673
664
::
674
665
675
- logger_handler
676
- logging.Handler
666
+ construct_tool_object(toolpath_object, loadingContext)
667
+ (MutableMapping[Text, Any], LoadingContext) -> Process
677
668
678
- Handler object for logging.
669
+ Hook to construct a Process object (eg CommandLineTool) object from a document.
670
+
671
+ select_resources
672
+ ::
673
+
674
+ selectResources(request)
675
+ (Dict[str, int], RuntimeContext) -> Dict[Text, int]
676
+
677
+ Take a resource request and turn it into a concrete resource assignment.
678
+
679
+ make_fs_access
680
+ ::
681
+
682
+ make_fs_access(basedir)
683
+ (Text) -> StdFsAccess
684
+
685
+ Return a file system access object.
686
+
687
+ In addition, when providing custom subclasses of Process objects, you can override the following methods:
688
+
689
+ CommandLineTool.make_job_runner
690
+ ::
691
+
692
+ make_job_runner(RuntimeContext)
693
+ (RuntimeContext) -> Type[JobBase]
694
+
695
+ Create and return a job runner object (this implements concrete execution of a command line tool).
696
+
697
+ Workflow.make_workflow_step
698
+ ::
699
+
700
+ make_workflow_step(toolpath_object, pos, loadingContext, parentworkflowProv)
701
+ (Dict[Text, Any], int, LoadingContext, Optional[CreateProvProfile]) -> WorkflowStep
702
+
703
+ Create and return a workflow step object.
0 commit comments