Federico Zambelli
04/14/2023, 7:55 PMTask inputs
works. I followed this example here and I still don't get it.
Can someone ELI5 it to me?
I don't get how certain tasks show inputs, but others dont (see screens)Nate
04/14/2023, 8:06 PMonly relationships between tasksso again going back to that issue's example
@flow()
def exampleflow():
# Create some futures
one = identity.submit(1)
two = identity.submit(2)
three = identity.submit(3)
identity(one) # accepts 1 task result future -> will have 1 task input
identity([two, three]) # accepts 2 task result futures -> will have 2 task inputs (looks like your first picture)
identity(1) # accepts zero task result futures, will look like your second picture i.e. {x=[]}
identity([2, 3]) # accepts zero task result futures, will look like your second picture i.e. {x=[]}
so basically, task "inputs" are references to upstream task results that are passed into the task you're looking at - does that make sense?Federico Zambelli
04/14/2023, 8:12 PMNate
04/14/2023, 8:18 PMFederico Zambelli
04/14/2023, 8:20 PMIt gets a little tricky since many folks would not be comfortable surfacing task args plaintext in the UI for data sensitivity reasonsah this makes sense. thanks for the insights!
Nate
04/14/2023, 8:22 PMFederico Zambelli
04/14/2023, 8:23 PMNate
04/14/2023, 9:53 PMFederico Zambelli
04/15/2023, 9:28 AMNate
04/16/2023, 1:05 AM