question about manually setting a task from e.g. failed to success, is it possible to provide the output of the task?
k
Kevin Kho
12/10/2021, 5:38 PM
Hey @Martim Lobao, a bit unclear what you mean by provide. Do you want to supply what the return would be if it succeded?
m
Martim Lobao
12/10/2021, 5:41 PM
exactly
Martim Lobao
12/10/2021, 5:41 PM
if I have a task and manually set its state to “success”, it’s return value is
None
afaict
Martim Lobao
12/10/2021, 5:42 PM
is it possible to provide a return value when setting the state to success?
k
Kevin Kho
12/10/2021, 5:43 PM
Doesn’t look like it, but maybe you can hack it is there is a Result that you can just fill the value so that a restart will pull from that location. I am not sure this will work.
m
Martim Lobao
12/10/2021, 5:44 PM
hmm gotcha, figured it might not currently be possible to do. nbd, I can figure a workaround then