Manage jobs
list_runs
from truefoundry import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", base_url="https://yourhost.com/path/to/api", ) client.list_runs( job_id="value", limit=10, offset=10, search_prefix="value", sort_by="value", order="value", triggered_by="value", status="value", )
get_run
from truefoundry import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", base_url="https://yourhost.com/path/to/api", ) client.get_run( job_id="value", job_run_name="value", )
delete_run
from truefoundry import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", base_url="https://yourhost.com/path/to/api", ) client.delete_run( job_id="value", job_run_name="value", )
trigger
from truefoundry import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", base_url="https://yourhost.com/path/to/api", ) client.trigger( deployment_id="value", application_id="application_id_value", input="value", )
terminate
from truefoundry import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", base_url="https://yourhost.com/path/to/api", ) client.terminate( deployment_id="value", job_run_name="value", )
Was this page helpful?