new keyword "error" for stoping a workflow with an error message
See original GitHub issueWe have been running into situations where the input data doesn’t fit the assumptions of the workflow. while might cause a downstream error to happen on its own, the error message accompanying this event usually doesn’t point at the correct source of the problem.
This could be resolved by some if statements in the wdl, running some sanity checks on the input, but then there is no way to gracefully and informatively fail. An error
keyword would allow authors to fail a workflow without having to spin up a vm that fails (i.e. returns error code 1) in order to inform the user of the true reason for failure.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:14 (14 by maintainers)
Top Results From Across the Web
In DB Workflow Error - Designer - Alteryx Community
Hello , I have set of workflows with In DB Tools doing multiple joins and aggregations. all these workflows stopped working after running ......
Read more >Foundations - Error Handling In Workflows - Microsoft Learn
To handle a fault, the first step is to define a scope of execution. In .NET code, this is accomplished with the try...
Read more >Workflow error handling - ServiceNow Docs
The personalized JavaScript that users create in workflow activity variables is vulnerable to run-time syntax errors. Available error information is ...
Read more >When is `new Error()` better than `Error()`? - Stack Overflow
1 Answer 1 · It looks like subclasses could implement the same behaviour if they wanted to, but there is no requirement for...
Read more >Getting error "something went wrong. to try again, reload the ...
You may trigger a workflow first, get the error, then check the log ... If there are still too many logs, search with...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Personally I don’t see a great value in the form
Which is syntactic sugar for
Adding this form would require addressing the concept of functions that never return, like
error()
, and what type they are. The gain here is not worth the extra effort, IMO.I agree that form like
error(String)
makes more sense thanerror(String, Boolean)
@rhpvorderman I think the “boolean” part could be handled by the existing
if { }
andif / then / else
constructs. I agree that supplying a message along with the error would be nice.Eg in workflows?
And in tasks?