question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Launch with" snippet does not work for Workflows

See original GitHub issue

Bug Report

The main page for a workflow contains as snippet of “Launch with” code that looks like this:

# alternatively, cwltool can run a workflow directly when all inputs and outputs are available on the local filesystem
$ cwltool --non-strict https://dockstore.org:8443/api/ga4gh/v1/tools/%23workflow%2FICGC-TCGA-PanCancer%2FOxoG-Dockstore-Tools%2Fpcawg-oxog-full-workflow/versions/develop/plain-CWL/descriptor Dockstore.json

The URL generated for this snippet (or maybe the API behind it?) does not work.

Expected behaviour

Users expect to be able to execute that code and have the workflow run.

Actual behaviour

Error 500.

Navigate to “https://dockstore.org:8443/api/ga4gh/v1/tools/%23workflow%2FICGC-TCGA-PanCancer%2FOxoG-Dockstore-Tools%2Fpcawg-oxog-full-workflow/versions/develop/plain-CWL/descriptor” in your browser and you will see:

{
"code": 500,
"message": "There was an error processing your request. It has been logged (ID 7099a2c2b9db6b63)."
}

Steps to reproduce the behaviour

Copy and paste the second “Launch with…” snippet of code for a workflow, and try running it.

This was originally reported by Chen, on Junjun’s team.

@garyluu also did a quick test and seems to think that this feature works for fine tools, but not for workflows.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
garyluucommented, Sep 29, 2017

This appears to be fixed in my Aug 1 pull request. Tested with:

  • http://<ip>:8080/api/ga4gh/v1/tools/quay.io%2Fwtsicgp%2Fdockstore-biobambam2%2Fbamtofastq/versions/1.0.0/plain-CWL/descriptor
  • http://<ip>:8080/api/ga4gh/v1/tools/%23workflow%2Fdenis-yuen%2Fhello-dockstore-workflow%2Fhello-world/versions/testCWL/plain-CWL/descriptor

These are shown by the launch cwltool command with tools from the backup_db.sql. Both entries have an entry name without a corresponding entry that doesn’t have an entry name (quay.io/wtsicgp/dockstore-biobam2 and denis-yuen/hello-dockstore-workflow does not exist).

1reaction
garyluucommented, Jul 31, 2017

Update: This seems to affect…

  • Tools with a tool path on both production and with UI2 because the UIs are giving the wrong URL
  • Workflows with a workflow path on both production and with UI2 because of the webservice discarding the workflow name
Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't get a snippet to work in a workflow - Alfred forum
I have a snippet 'nextsun' defined that produces a YYYYMMDD date, e.g. 20220501. I would like to combine this with a {query} input...
Read more >
Run code snippets in workflows - Azure Logic Apps
To create and run a code snippet in your logic app workflow without much setup, you can use the Inline Code built-in connector....
Read more >
Unable to create Snippets (#195) · Issues - GitLab.org
Problem to Solve. When trying to create a snippet the error message returned is GitLab Workflow: Failed to create your snippet," every time....
Read more >
How to use snippets in Github action workflow file to avoid ...
The question asks about workflow snippets/files located in a different repository. This answer reuses actions that live in different repositories, but not ......
Read more >
Events that trigger workflows - GitHub Docs
You can configure your workflows to run when specific activity on GitHub happens, at a scheduled time, or when an event outside of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found