About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Last updated: Nov 21, 2024
A job is a way of running a batch deployment, script, or notebook in watsonx.ai Runtime. You can choose to run a job manually or on a schedule that you specify. After you create one or more jobs, you can view and manage them from the Jobs tab of your deployment space.
From the Jobs tab of your space, you can:
- See the list of the jobs in your space
- View the details of each job. You can change the schedule settings of a job and pick a different environment template.
- Monitor job runs
- Delete jobs
See the following sections for various aspects of job management:
Before you begin
You must set up your task credentials by generating an API key. For more information, see Managing task credentials.
Creating a job for a batch deployment
Important: You must have an existing batch deployment to create a batch job.
To learn how to create a job for a batch deployment, see Creating jobs in a batch deployment.
Viewing jobs in a space
You can view all of the jobs that exist for your deployment space from the Jobs page. You can also delete a job.
To view the details of a specific job, click the job. From the job's details page, you can do the following:
-
View the runs for that job and the status of each run. If a run failed, you can select the run and view the log tail or download the entire log file to help you troubleshoot the run. A failed run might be related to a temporary connection or environment problem. Try running the job again. If the job still fails, you can send the log to Customer Support.
-
When a job is running, a progress indicator on the information page displays information about relative progress of the run. You can use the progress indicator to monitor a long run.
-
Edit schedule settings or pick another environment template.
-
Run the job manually by clicking the run icon from the job action bar. You must deselect the schedule to run the job manually.
Managing job metadata retention
The watsonx.ai Runtime plan that is associated with your IBM Cloud account sets limits on the number of running and stored deployments that you can create. If you exceed your limit, you cannot create new deployments until you delete existing deployments or upgrade your plan. For more information, see watsonx.ai Runtime plans.
Managing metadata retention and deletion programmatically
If you are managing a job programmatically by using the Python client or REST API, you can retrieve metadata from the deployment endpoint by using the
method during the 30 days.GET
To keep the metadata for more or less than 30 days, change the query parameter from the default of
for the retention=30
method to override the default and preserve the metadata.POST
Note:
Changing the value to
cancels the auto-delete and preserves the metadata.retention=-1
To delete a job programmatically, specify the query parameter
for the watsonx.ai Runtime hard_delete=true
method to completely remove the job metadata.DELETE
The following example shows how to use
method:DELETE
DELETE /ml/v4/deployment_jobs/{JobsID}
Learn from samples
Refer to Machine learning samples and examples for links to sample notebooks that demonstrate creating batch deployments and jobs by using the watsonx.ai Runtime REST API and watsonx.ai Python client library.
Parent topic: Managing predictive deployments