Closed koliyo closed 6 years ago
@koliyo , hi!
What is the params
section of main
task? I can't remember what it does, i even can't remember it is legal section of task description.
Also it would be great if you describe the real problem you're trying to solve.
Any action parameter may be passed via getargs
section ( desc. ).
'getargs': {
'action_argument': ( 'task_name', 'name_of_saved_value' )
}
But here is some slight restriction. All action arguments should be serializable. So if you prefer to pass the file object this way, it's probably a bad idea due to serialization issue. I think, it would be much better to pass the file path instead of file object.
I had remember the meaning of params
section. :)
It's a command-line parameters, which may be passed to actions. File object especially can't be passed into actions this way.
How can I pass a parameter to a dependency? In this example, I want to access the
file
parameter in thefoo
task.I have looked at
@create_after
,result_dep
,getargs
,setup
, but I have been unable to setup this configuration :/