Repo Url
: This is the URL of the Github repository that contains the code for the job. For this example, the repo url is https://github.com/truefoundry/getting-started-examplesPath to build context
: This is the path to the directory in the Github repository that contains the code for the job. For this example, the path to the build context is ./train-model/
Command
: This is the command to run the job. For this example, the command is python train.py
Submit
, your deployment will be successful in a few seconds, and your job will be displayed as Suspended, indicating that it’s successfully deployed but not running.
You can view all the information about your job following the steps below:
Run Job
button on the dashboard or programatically. You can find more details about how to trigger your job programatically in the dashboard itself by selecting Run Job Programatically
.Terminate
button on the dashboard.
How to omit certain files from being built and deployed?
.tfyignore
file follows the same rules as the .gitignore
file..gitignore
file, you don’t need to create a .tfyignore
file. Truefoundry will automatically detect the files to ignore.Where is the docker image built?
How can I run the job in some interval?
0 11 1 * *
represents “first day of every month at 11:00 AM”, or30 9 * * 1
represents “every Monday at 9:30 AM”We can use a site like https://crontab.guru/ to tryout cron expression and get a human-readable description of the same.What if a job is still running until the next scheduled run?
Forbid
: This is the default. Do not allow concurrent runs.Allow
: Allow jobs to run concurrently.Replace
: Replace the current job with the new one.