Interacting with your Job

Job-Specific Dashboard

To access the dedicated dashboard for your job, click its name.

Running a Job

When deploying a job you can either schedule it or set it to a manual trigger. If you deploy a job with manual trigger then it won't run automatically, you will have to trigger it.

You can do this in one of two ways, either through the User Interface using the Run Job button, or Programmatically using the Python SDK.

Trigger a Job through the User Interface (UI)

Once you Run your job, Your job will start getting executed and enter the Running state. At this point, the platform will create and launch a pod associated with the Job Run to execute the job. Upon successful completion of your job, the Job Run will transition to the Finished status. Simultaneously, the pod that was created to execute the job will be automatically released, along with the resources they utilised.

Trigger a Job Programmatically

To trigger Job programmatically, you will need the Application FQN which is the Fully Qualified Name (FQN) of the job you want to run. You can obtain this information from the Job-specific dashboard of the Job you are interested in.

Now you can trigger the Job programmatically using the Python SDK

from truefoundry.deploy import trigger_job

# Trigger/Run a Job
trigger_job(
  application_fqn="<application-fqn>", 
  command="<Optional Command to Trigger the Job With>" # Overrides command defined in Job Spec
)

Viewing your Job Run

Terminating an ongoing Job Run