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
Question About The Trains Agent And The Git Credentials When Setting A Trains Agent, It Is Possible To Configure Git Credentials For It And I'M Trying To Figure Out In Which Cases It Is Necessary. When Executing A Task Remotely (

Question about the trains agent and the git credentials

When setting a trains agent, it is possible to configure git credentials for it and I'm trying to figure out in which cases it is necessary.
When executing a task remotely ( Task.execute_remotely ) if I have no git credentials how will it effect the execution? Is git necessary only for git related commands (like pulling/pushing, pip installing from git etc.)? Or is it necessary to access the imported files and other source files used in the script?

Bottom line, I'm trying to understand what is the purpose of the git credentials in the trains agent setup and when will they be used

Posted 3 years ago
Votes Newest

Answers 5

With pleasure

Posted 3 years ago

👍 thanks (again)

Posted 3 years ago

WackyRabbit7 basically yes 🙂

Posted 3 years ago

Okay, so if my python script imports some other scripts I've written - I must use git?

Posted 3 years ago

Hi WackyRabbit7 ,
Regrading git credentials, see here in the trains.conf https://github.com/allegroai/trains-agent/blob/master/docs/trains.conf#L18

Trains assumes one of two (almost three) possible setups
Your code/script is in a git repository. Then when executing manually all the git references incl` uncommitted changes are stored. Then when executing with the trains-agent, it will clone the code based on these references apply the uncommitted changes and run your code. To do that the trains-agent needs your git credentials (which it will use to do the git pull with) A single stand alone python script. The Trains manual execution will put the entire script in the "uncommitted chanmges section". Then when executed with trains-agent, the agent will take the script from the uncommitted changes section and execute it. Jupyter Notebook. every time you store a snapshot, the jupyter notebook is converted into python script, and stored on the experiment in the uncommitted changes section. Then trains-agent, link in (2), will take the python script and execute it on the remote machine

Posted 3 years ago
5 Answers
3 years ago
one year ago
Similar posts