Replies: 1 comment
-
For some tasks like test task, we might want to also provide a (different) failure result (type), so that it is possible to better process (and recover) a failure. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, tasks can only depend on the success value of other tasks. To depend on another task result, we use the
def apply(): T
method.There are situations, where task failure does not necessarily means a build failure.
Here are some made up examples:
prepareOffline
task may want to fetch as much dependencies as possible, even when some are going to be unsuccessfulThoughts about the implementation:
Result[T]
, not just the sucess valueResult.Success[T](value)
, e.g.def raw(): Result[T]
Beta Was this translation helpful? Give feedback.
All reactions