Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hello Guys

Hello guys ๐Ÿ™‚ I have a question about parameters & Controller.

From a Controller instance I would like to clone a task, and set some update parameters with set_parameters (). (A)
parameter_updated = {} cloned_task_1 = Task.clone(source_task='Examples', name="Cloned task 1") cloned_task_1.set_parameters(parameter_updated) Task.enqueue(cloned_task_1.id, queue_name='queue1')
However In the actual task I am cloning I also have some default parameters coming from an arg_parser . (B)
args_ย =ย vars(parser.parse_args() task = Task.init(project_name='Examples, task_name='task 1) task.connect(args_)
I end up having 2 different set of parameters, but the default one are used (B). I would like to use default one only if the one from the Controller are not provided. How do I fix that?

here a screenshot from the UI.

  
  
Posted 3 years ago
Votes Newest

Answers 2


Thanks Stef,
I will test and let you know ๐Ÿ™‚

  
  
Posted 3 years ago

Hey Federico, since you are doing this from inside python, you could always call the 'get_parameters_as_dict' from the Task you have cloned, merge/update whichever ones you want to (or not), and then call ' set_parameters_as_dict ' .. I believe that should get you where you want to go ๐Ÿ™‚

  
  
Posted 3 years ago