Closed justinrporter closed 5 years ago
I believe you have switched the order of the arguments around, it should be
result0 = jug.Tasklet(result, select_first)
Does this mean the documentation here is incorrect?
def select_first(t):
return t[0]
result = Task(...)
result0 = Tasklet(select_first, result)
next = Task(next_step,result0)
Yes, thanks! Fixed it.
I seem to be hitting a few problems with Tasklets. I've implemented an example of what I'm talking about based upon the documentation:
Running
jug status
on this code gets me the following error:If I comment out the last line (
next = jug.Task(square, result0)
), it "works":My obvious interpretation of this is that the
Tasklet
object doesn't have acan_load
parameter (which seems like it should return true if its dependencies can be loaded?), but perhaps I'm doing something wrong?Could you advise me on how to proceed? I have read the docs page several times and can't seem to figure out what I'm doing wrong, if anything.