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
Hi All! I Am Quite New With Trains And I Was Wondering If It'S Possible To Fully Automate The Creation Of Tasks In Order To Have Them Always Run On Separate Workers. I Noticed That Once A Task Has Been Created And Run Locally (Via

hi all! I am quite new with Trains and I was wondering if it's possible to fully automate the creation of Tasks in order to have them always run on separate workers. I noticed that once a Task has been created and run locally (via Task.init ) then it's possible to clone it via UI and to edit the field REPOSITORY , COMMIT ID , etc to possibly enqueue on a worker a task that is completely unrelated to the previous one, execution-wise at least, because of course it will share the project_name . I'd be interested in a workflow where I can create a Task filling via script the git fields and to enqueue it automatically, ideally during some CI/CD steps where i'll know the correct branch and commit ids. Is this possible? I cannot find any reference to the git fields in the Task documentation. I already went through https://github.com/allegroai/trains/tree/master/examples/automation , but also in this case the Toy Base Task is executed locally at least once, that wouldn't be feasible for scripts requiring a lot of computational resources. Sorry if the request isn't clear, happy to answer to some follow up questions for clarification. Thanks

  
  
Posted 3 years ago
Votes Newest

Answers 3


Hi OutrageousGrasshopper93
I think that what you are looking for is Task.import_task and Task.export
https://allegro.ai/docs/task.html#trains.task.Task.import_task
https://allegro.ai/docs/task.html#trains.task.Task.export_task

  
  
Posted 3 years ago

looks exactly what I needed! Thanks

  
  
Posted 3 years ago

👍

  
  
Posted 3 years ago
874 Views
3 Answers
3 years ago
one year ago
Tags
Similar posts