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
Is It Possible To Make A Callback To When A Task Is Grabbed By A Trains-Agent Worker So I Could Edit Its Configuration Before The Creation Of The Tasks Starts? (I Want To Change The Base Docker Path Depending On The Worker That Grabbed The Task)

Is it possible to make a callback to when a task is grabbed by a trains-agent worker so I could edit its configuration before the creation of the tasks starts? (I want to change the base docker path depending on the worker that grabbed the task)

  
  
Posted 4 years ago
Votes Newest

Answers 2


Hi SmarmySeaurchin8 ,

You can configure each trains-agent to run with a different image. In your trains.conf file, under agent.default_docker.image section, specify the image you want the trains-agent to run with. When you have a value in this section, and with empty BASE DOCKER IMAGE, you can avoid changing it manually.

Can this do the trick?

  
  
Posted 4 years ago

Oh I see, I think this will work. Thanks 🙂

  
  
Posted 4 years ago
1K Views
2 Answers
4 years ago
one year ago
Tags