From 0d21ee18951d75ab30231049a59447e338afa14e Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 24 Jun 2025 23:31:30 +0100 Subject: workflow: Make scatter arguments optional in workflow->scheduler-proc. * ravanan/workflow.scm (workflow->scheduler-proc): Make scatter and scatter-method arguments optional. --- ravanan/workflow.scm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ravanan/workflow.scm b/ravanan/workflow.scm index d1bee1b..8b23b11 100644 --- a/ravanan/workflow.scm +++ b/ravanan/workflow.scm @@ -175,8 +175,10 @@ requirements and hints of the step." (assoc-ref* input "type")))) (assoc-ref input "id"))) -(define (workflow->scheduler-proc name cwl scheduler batch-system - scatter scatter-method) +(define* (workflow->scheduler-proc name cwl scheduler batch-system + #:optional + (scatter %nothing) + (scatter-method %nothing)) "Return a @code{} object for @var{cwl} workflow named @var{name} scheduled using @var{scheduler} on @var{batch-system}. @var{scatter} and @var{scatter-method} are the CWL scattering properties of this step." @@ -571,8 +573,7 @@ area need not be shared. @var{store} is the path to the shared ravanan store. (run-with-state (let loop ((mstate ((scheduler-schedule scheduler) (workflow->scheduler-proc name cwl - scheduler batch-system - %nothing %nothing) + scheduler batch-system) inputs scheduler))) ;; Poll. -- cgit v1.2.3