Sage-Bionetworks / SynapseWorkflowHook

Code for linking a workflow engine to a Synapse evaluation queue
Apache License 2.0
4 stars 1 forks source link

Could the workflow hook give the cwl workflow additional parameters? #41

Closed andrewelamb closed 5 years ago

andrewelamb commented 5 years ago

Currently the workflow has to take these parameters:

submissionId: ID of the Synapse submission to process adminUploadSynId: ID of a folder accessible only to the submission queue administrator submitterUploadSynId: ID of a folder accessible to the submitter workflowSynapseId: ID of the Synapse entity containing a reference to the workflow file(s) synapseConfig: ~/.synapseConfig file that has your Synapse credentials

How feasible would it to give the workflow other parameters? Such as the id of the evaluation queue it's pulling submission ids from. This would be fairly useful for a certain type of challenge we're running.

thomasyu888 commented 5 years ago

The workaround is that in the process of downloading the submission, we link the evaluation id as an output of the download_submission.cwl tool.

brucehoff commented 5 years ago

As @thomasyu888 says, the submission object (metadata) includes the evaluation ID. When you get the submission object (even if you don't download the associated submitted file) you get this info. If that's not sufficient, please reopen this issue.