Create a job run
post
/20260430/aiDataPlatforms/{aiDataPlatformId}/workspaces/{workspaceKey}/jobRuns
Creates a job run for an AI Data Platform Workbench.
Request
Path Parameters
-
aiDataPlatformId(required): string
The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the AI Data Platform (Data Lake) instance.
-
workspaceKey(required): string
The key of the Workspace
Header Parameters
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.
-
opc-retry-token: string
Minimum Length:
1Maximum Length:64A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of running that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and removed from the system, then a retry of the original creation request might be rejected. -
should-update-recent: boolean
A flag to identify if the recent list should be updated.Default Value:
false
Details for the new job run.
Root Schema : CreateJobRunDetails
Type:
objectThe data to create a job run.
Show Source
-
jobKey(required):
string
The OCID of the job.
-
key:
string
The OCID of the job.
-
originalAttemptRunId:
string
The OCID of the job.
-
parameters:
array parameters
An optional list of parameters.
-
queue:
object Queue
Queue configuration for job.
-
repairHistory:
array repairHistory
Maximum Number of Items:
10Array of repaired runs. -
schedule:
object Schedule
The schedule configuration for the job.
Nested Schema : parameters
Type:
arrayAn optional list of parameters.
Show Source
-
Array of:
object Parameter
Specifies the name and value of the defined parameter.
Nested Schema : Queue
Type:
objectQueue configuration for job.
Show Source
-
isEnabled(required):
boolean
Default Value:
falseTrue if job queue is enabled.
Nested Schema : repairHistory
Type:
arrayMaximum Number of Items:
10Array of repaired runs.
Show Source
-
Array of:
object RepairHistory
A description of a repaired job run.
Nested Schema : Schedule
Type:
objectThe schedule configuration for the job.
Show Source
-
pauseStatus:
string
Default Value:
UNPAUSEDAllowed Values:[ "PAUSED", "UNPAUSED" ]Indicates whether the schedule is paused or not. -
quartzCronExpression(required):
string
A cron expression using Quartz syntax that describes the schedule for a job.
-
timezoneId(required):
string
A Java timezone ID. The schedule of the job is resolved with respect to this timezone. Example - US/Pacific.
Nested Schema : Parameter
Type:
objectSpecifies the name and value of the defined parameter.
Show Source
-
name(required):
string
Pattern:
^[\w\-.]+$The name of the defined parameter. May only contain alphanumeric characters, '_', '-', and '.' -
value:
string
Value of the defined parameter.
Nested Schema : RepairHistory
Type:
objectA description of a repaired job run.
Show Source
-
endTime:
integer(int64)
The time at which the job execution started in epoch milliseconds.
-
executionDuration:
integer(int64)
The time (in milliseconds) taken to complete the job execution.
-
key:
integer(int32)
The unique ID of the Repair run.
-
lifecycleStates:
array lifecycleStates
The collection of lifecycle states.
-
parameters:
array parameters
An optional list of parameters.
-
repairedTasks:
array repairedTasks
A list of repaired tasks.
-
startTime:
integer(int64)
The time at which the job execution started in epoch milliseconds.
-
state:
object State
The current state of the run.
-
taskToTaskRunMap:
object taskToTaskRunMap
Additional Properties Allowed: additionalPropertiesTask to TaskRun map for given job run.
-
type:
string
Allowed Values:
[ "ORIGINAL", "REPAIR" ]Indicates whether the job run is Original or Repaired.
Nested Schema : lifecycleStates
Type:
arrayThe collection of lifecycle states.
Show Source
-
Array of:
object LifecycleState
The lifecycle state of execution.
Nested Schema : parameters
Type:
arrayAn optional list of parameters.
Show Source
-
Array of:
object Parameter
Specifies the name and value of the defined parameter.
Nested Schema : State
Type:
objectThe current state of the run.
Show Source
-
errorTrace:
string
If there was an error executing the run, this field contains any available stack traces.
-
isUserCanceledOrTimedOut:
boolean
Default Value:
falseSet to true, if the job execution is canceled by the user or by the scheduler due to timeout. -
stateMessage:
string
A descriptive message of the current state.
-
status:
string
Allowed Values:
[ "PENDING", "QUEUED", "RUNNING", "SKIPPED", "INTERNAL_ERROR", "BLOCKED", "SUCCESS", "FAILED", "CANCELING", "CANCELED", "UPSTREAM_CANCELED", "UPSTREAM_FAILED", "EXCLUDED", "TIMED_OUT", "PAUSED_MAINTENANCE" ]Current state of execution.
Nested Schema : taskToTaskRunMap
Type:
objectAdditional Properties Allowed
Show Source
Task to TaskRun map for given job run.
Nested Schema : LifecycleState
Type:
objectThe lifecycle state of execution.
Match All
The lifecycle state of execution.
The lifecycle state of execution.
The lifecycle state of execution.
Show Source
-
object
State
The current state of the run.
-
object
LifecycleState-allOf[1]
-
object
LifecycleState-allOf[2]
Nested Schema : LifecycleState-allOf[1]
Type:
objectNested Schema : LifecycleState-allOf[2]
Type:
Show Source
object-
endTime:
integer(int64)
The time at which the job execution started in epoch milliseconds.
-
startTime:
integer(int64)
The time at which the job execution started in epoch milliseconds.
Response
Supported Media Types
- application/json
201 Response
Request accepted. Job run is created.
Headers
-
content-location: string(uri-reference)
Same as location.
-
etag: string
For optimistic concurrency control. See `if-match`.
-
location: string(uri-reference)
URL for the created job run. The job run key is generated after this request is sent.
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
-
opc-work-request-id: string
The OCID of the asynchronous work request. Use GetWorkRequest with this ID to track the status of the request.
Root Schema : JobRun
Type:
objectDescription of a job run.
Show Source
-
cleanupDuration:
integer(int64)
The time (in milliseconds) taken to terminate the cluster and to clean up any associated artifacts.
-
clusterInstance:
object ClusterInstance
The cluster used for this run. The value of this field will be set when a new cluster is specified for execution and once the request to create a new cluster is successfully submitted.
-
clusterSpec:
object ClusterSpec
Cluster specification snapshot of a job.
-
createdBy:
string
The OCID of the IAM user.
-
createdByName:
string
Name of the user who created this record
-
endTime:
integer(int64)
The time at which the job execution started in epoch milliseconds.
-
executionDuration:
integer(int64)
The time (in milliseconds) taken to complete the job execution.
-
gitConfig:
object GitConfig
Git configuration used when source is GIT_PROVIDER.
-
jobKey(required):
string
The OCID of the job.
-
jobName:
string
A user-friendly name. Does not have to be unique, and is changeable.
-
key(required):
string
The OCID of the job.
-
launched:
string
Default Value:
MANUALAllowed Values:[ "SCHEDULED", "MANUAL" ]Identify job run launched by schedule or manually. -
lifecycleStates:
array lifecycleStates
The collection of lifecycle states.
-
maxConcurrentRuns:
integer(int32)
Minimum Value:
0Maximum Value:1000Default Value:1Indicates the number of executions for the same job that can be run concurrently. The maximum value cannot exceed 1000. -
name(required):
string
A user-friendly name. Does not have to be unique, and is changeable.
-
originalAttemptRunId:
string
The OCID of the job.
-
parameters:
array parameters
An optional list of parameters.
-
parentJobRunKey:
string
The OCID of the job.
-
parentTaskRunKey:
string
The OCID of the task run.
-
queue:
object Queue
Queue configuration for job.
-
repairedTasks:
array repairedTasks
A list of repaired tasks.
-
repairHistory:
array repairHistory
Maximum Number of Items:
10Array of repaired runs. -
rootJobRunKey:
string
The OCID of the job.
-
runDuration:
integer(int64)
The time (in milliseconds) taken to complete the job execution and all its repairs to finish.
-
schedule:
object Schedule
The schedule configuration for the job.
-
setupDuration:
integer(int64)
The time (in milliseconds) taken to setup the cluster.
-
startTime:
integer(int64)
The time at which the job execution started in epoch milliseconds.
-
state:
object State
The current state of the run.
-
systemParameters:
object systemParameters
Additional Properties Allowed: additionalPropertiesMap of system parameters with their values for this job run.
-
taskRunSummaryMap:
object taskRunSummaryMap
Additional Properties Allowed: additionalPropertiesTaskRun to TaskRunSummary map for given job run.
-
tasks:
array tasks
List of tasks in a job.
-
taskToTaskRunMap:
object taskToTaskRunMap
Additional Properties Allowed: additionalPropertiesTask to TaskRun map for given job run.
-
timeCreated:
string(date-time)
The time at which the job execution started.
-
timeoutSeconds:
integer(int32)
Minimum Value:
60Maximum Value:172800Default Value:0An optional value to indicate the max run duration of a job after which job will be timed out. The default is Zero indicating no timeout value. -
timeUpdated:
string(date-time)
The time at which the job execution was updated.
-
unifiedJobAndJobRunParameters:
array unifiedJobAndJobRunParameters
Unified List of job and job run parameters after resolving dynamic value references and parameter resolution as per precedence.
-
version:
integer(int32)
Current version of job run object in repository.
Nested Schema : ClusterInstance
Type:
objectThe cluster used for this run.
The value of this field will be set when a new cluster is specified for execution and once the request to create a new cluster is successfully submitted.
Show Source
-
clusterKey:
string
The cluster key for the cluster configuration on which the job is executed.
-
sparkContextKey:
string
The spark context used in the job run.
Nested Schema : ClusterSpec
Type:
objectCluster specification snapshot of a job.
Show Source
-
existingClusterKey:
string
The key of the cluster.
-
libraries:
object Libraries
List of libraries to be installed on the cluster.
-
newCluster:
object NewClusterConfiguration
The cluster configuration to create a new cluster.
Nested Schema : GitConfig
Type:
objectGit configuration used when source is GIT_PROVIDER.
Show Source
-
branch:
string
Git branch path.
-
credential:
string
Git credential to access the repository.
-
provider:
string
Allowed Values:
[ "GITHUB", "BITBUCKET", "GITLAB", "OCI_DEVOPS" ]Git provider. -
repositoryUrl:
string
Git repository URL.
Nested Schema : lifecycleStates
Type:
arrayThe collection of lifecycle states.
Show Source
-
Array of:
object LifecycleState
The lifecycle state of execution.
Nested Schema : parameters
Type:
arrayAn optional list of parameters.
Show Source
-
Array of:
object Parameter
Specifies the name and value of the defined parameter.
Nested Schema : Queue
Type:
objectQueue configuration for job.
Show Source
-
isEnabled(required):
boolean
Default Value:
falseTrue if job queue is enabled.
Nested Schema : repairHistory
Type:
arrayMaximum Number of Items:
10Array of repaired runs.
Show Source
-
Array of:
object RepairHistory
A description of a repaired job run.
Nested Schema : Schedule
Type:
objectThe schedule configuration for the job.
Show Source
-
pauseStatus:
string
Default Value:
UNPAUSEDAllowed Values:[ "PAUSED", "UNPAUSED" ]Indicates whether the schedule is paused or not. -
quartzCronExpression(required):
string
A cron expression using Quartz syntax that describes the schedule for a job.
-
timezoneId(required):
string
A Java timezone ID. The schedule of the job is resolved with respect to this timezone. Example - US/Pacific.
Nested Schema : State
Type:
objectThe current state of the run.
Show Source
-
errorTrace:
string
If there was an error executing the run, this field contains any available stack traces.
-
isUserCanceledOrTimedOut:
boolean
Default Value:
falseSet to true, if the job execution is canceled by the user or by the scheduler due to timeout. -
stateMessage:
string
A descriptive message of the current state.
-
status:
string
Allowed Values:
[ "PENDING", "QUEUED", "RUNNING", "SKIPPED", "INTERNAL_ERROR", "BLOCKED", "SUCCESS", "FAILED", "CANCELING", "CANCELED", "UPSTREAM_CANCELED", "UPSTREAM_FAILED", "EXCLUDED", "TIMED_OUT", "PAUSED_MAINTENANCE" ]Current state of execution.
Nested Schema : systemParameters
Type:
objectAdditional Properties Allowed
Show Source
Map of system parameters with their values for this job run.
Nested Schema : taskRunSummaryMap
Type:
objectAdditional Properties Allowed
Show Source
TaskRun to TaskRunSummary map for given job run.
Nested Schema : tasks
Type:
arrayList of tasks in a job.
Show Source
-
Array of:
object Task
Discriminator:
typeProperties of a task provided by the user.
Nested Schema : taskToTaskRunMap
Type:
objectAdditional Properties Allowed
Show Source
Task to TaskRun map for given job run.
Nested Schema : unifiedJobAndJobRunParameters
Type:
arrayUnified List of job and job run parameters after resolving dynamic value references and parameter resolution as per precedence.
Show Source
-
Array of:
object Parameter
Specifies the name and value of the defined parameter.
Nested Schema : Libraries
Type:
objectList of libraries to be installed on the cluster.
Show Source
-
jar:
string
URI of the jar to be installed.
Nested Schema : NewClusterConfiguration
Type:
objectThe cluster configuration to create a new cluster.
Show Source
-
autoScale:
object AutoScale
Properties required to automatically scale the clusters up and down based on load.
-
clusterName:
string
Minimum Length:
1Maximum Length:100A unique name for the job cluster. -
numWorkers:
integer(int32)
Number of worker nodes configured for this cluster.
-
sparkConf:
string
The spark configuration in key-value pairs.
-
sparkVersion:
string
The Spark version used to run the application.
Nested Schema : AutoScale
Type:
objectProperties required to automatically scale the clusters up and down based on load.
Show Source
-
maxWorkers:
integer(int32)
The maximum number of workers to which the cluster can scale up when overloaded.
-
minWorkers:
integer(int32)
The minimum number of workers to which the cluster can scale down when underused.
Nested Schema : LifecycleState
Type:
objectThe lifecycle state of execution.
Match All
The lifecycle state of execution.
The lifecycle state of execution.
The lifecycle state of execution.
Show Source
-
object
State
The current state of the run.
-
object
LifecycleState-allOf[1]
-
object
LifecycleState-allOf[2]
Nested Schema : LifecycleState-allOf[1]
Type:
objectNested Schema : LifecycleState-allOf[2]
Type:
Show Source
object-
endTime:
integer(int64)
The time at which the job execution started in epoch milliseconds.
-
startTime:
integer(int64)
The time at which the job execution started in epoch milliseconds.
Nested Schema : Parameter
Type:
objectSpecifies the name and value of the defined parameter.
Show Source
-
name(required):
string
Pattern:
^[\w\-.]+$The name of the defined parameter. May only contain alphanumeric characters, '_', '-', and '.' -
value:
string
Value of the defined parameter.
Nested Schema : RepairHistory
Type:
objectA description of a repaired job run.
Show Source
-
endTime:
integer(int64)
The time at which the job execution started in epoch milliseconds.
-
executionDuration:
integer(int64)
The time (in milliseconds) taken to complete the job execution.
-
key:
integer(int32)
The unique ID of the Repair run.
-
lifecycleStates:
array lifecycleStates
The collection of lifecycle states.
-
parameters:
array parameters
An optional list of parameters.
-
repairedTasks:
array repairedTasks
A list of repaired tasks.
-
startTime:
integer(int64)
The time at which the job execution started in epoch milliseconds.
-
state:
object State
The current state of the run.
-
taskToTaskRunMap:
object taskToTaskRunMap
Additional Properties Allowed: additionalPropertiesTask to TaskRun map for given job run.
-
type:
string
Allowed Values:
[ "ORIGINAL", "REPAIR" ]Indicates whether the job run is Original or Repaired.
Nested Schema : lifecycleStates
Type:
arrayThe collection of lifecycle states.
Show Source
-
Array of:
object LifecycleState
The lifecycle state of execution.
Nested Schema : parameters
Type:
arrayAn optional list of parameters.
Show Source
-
Array of:
object Parameter
Specifies the name and value of the defined parameter.
Nested Schema : taskToTaskRunMap
Type:
objectAdditional Properties Allowed
Show Source
Task to TaskRun map for given job run.
Nested Schema : additionalProperties
Type:
objectNested Schema : Task
Type:
objectDiscriminator:
typeProperties of a task provided by the user.
Show Source
-
dependsOn:
array dependsOn
Specifies the dependency graph of the task. All the tasks mentioned in this field need to be completed before executing this task.
-
isRetryOnTimeout:
boolean
Default Value:
falseAn optional policy to specify whether to retry a task when it times out. The default behavior is to not retry on timeout. -
maxRetries:
integer(int32)
Minimum Value:
0Maximum Value:300Default Value:0The maximum number of times to retry an unsuccessful run. A run is considered to be unsuccessful if it fails with status FAILED or INTERNAL_ERROR. Maximum value is 300. -
minRetryIntervalMillis:
integer(int32)
Minimum Value:
0Maximum Value:600000Default Value:0An optional minimal interval in milliseconds between the start of the failed run and the subsequent retry run. If value is not provided, the run would be immediately retried. Maximum value is 10 mins (600000) -
runIf(required):
string
Default Value:
ALL_SUCCESSAllowed Values:[ "ALL_SUCCESS", "ALL_DONE", "NONE_FAILED", "AT_LEAST_ONE_SUCCESS", "ALL_FAILED", "AT_LEAST_ONE_FAILED" ]The trigger rule based on which the current task execution is determined. -
taskKey(required):
string
Minimum Length:
1Maximum Length:100The display name of the task. User can specify a value for this. -
type(required):
string
Allowed Values:
[ "NOTEBOOK_TASK", "PYTHON_TASK", "SPARK_SUBMIT_TASK", "IF_ELSE_TASK", "JOB_TASK", "JAR_TASK" ]The type of the task.
Nested Schema : dependsOn
Type:
arraySpecifies the dependency graph of the task. All the tasks mentioned in this field need to be completed before executing this task.
Show Source
-
Array of:
object DependsOn
Specifies the dependency graph of the task. All the tasks mentioned in this field need to be completed before executing this task.
Nested Schema : DependsOn
Type:
objectSpecifies the dependency graph of the task. All the tasks mentioned in this field need to be completed before executing this task.
Show Source
-
outcome:
string
Specified on condition task dependencies. The outcome of the dependent task should be met for this task to be executed.
-
taskKey(required):
string
The name of the task that it depends on.
400 Response
Bad Request (invalid query parameters, malformed headers, and so on).
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
401 Response
Unauthorized (missing or expired credentials, and so on).
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
404 Response
Not Found. The requested resource was not found.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
409 Response
Conflict. Request conflicts with the current state of the resource.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
429 Response
Too Many Requests. Too many requests sent to the server in a short period.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
500 Response
Internal Server Error. The server encountered an unexpected condition preventing fulfilment of the request.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
Default Response
Unknown Error. Error is not recognized by the system.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.