job.proto
path mgmt/v1alpha1/job.proto
package mgmt.v1alpha1
Messages
ActivityFailure
Name | Type | Description |
---|
message | string | |
ActivityOptions
Config that contains various timeouts that are configured in the underlying temporal workflow(s) and activities
Name | Type | Description |
---|
schedule_to_close_timeout | optional int64 | Total time that a workflow is willing to wait for an activity to complete, including retries.
Measured in seconds |
start_to_close_timeout | optional int64 | Max time of a single Temporal Activity execution attempt.
This timeout should be as short as the longest psosible execution of any activity (e.g. table sync).
Important to know that this is per retry attempt. Defaults to the schedule to close timeout if not provided.
Measured in seconds |
retry_policy | RetryPolicy | Optionally define a retry policy for the activity
If max attempts is not set, the activity will retry indefinitely until the start to close timeout lapses |
AwsS3DestinationConnectionOptions
AwsS3SourceConnectionOptions
Name | Type | Description |
---|
connection_id | string | |
CancelJobRunRequest
Name | Type | Description |
---|
job_run_id | string | |
account_id | string | |
CancelJobRunResponse
CreateJobDestination
CreateJobDestinationConnectionsRequest
CreateJobDestinationConnectionsResponse
Name | Type | Description |
---|
job | Job | |
CreateJobRequest
Name | Type | Description |
---|
account_id | string | The unique account identifier that this job will be associated with |
job_name | string | The unique, friendly name of the job. This is unique per account |
cron_schedule | optional string | Optionally provide a cron schedule. Goes into effect if the job status is set to enabled |
mappings | repeated JobMapping | |
source | JobSource | |
destinations | repeated CreateJobDestination | |
initiate_job_run | bool | Initially trigger a run of this job regardless of its status or cron schedule |
workflow_options | WorkflowOptions | Specify timeouts and other workflow options for the underlying temporal workflow |
sync_options | ActivityOptions | Specify timeout and retry options for data synchronization activities
Data sync activities are any piece of work that involves actually synchronizing data from a source to a destination
For the data sync and generate jobs, this will be applied per table |
CreateJobResponse
Name | Type | Description |
---|
job | Job | |
CreateJobRunRequest
Name | Type | Description |
---|
job_id | string | |
CreateJobRunResponse
DeleteJobDestinationConnectionRequest
Name | Type | Description |
---|
destination_id | string | |
DeleteJobDestinationConnectionResponse
DeleteJobRequest
Name | Type | Description |
---|
id | string | |
DeleteJobResponse
DeleteJobRunRequest
Name | Type | Description |
---|
job_run_id | string | |
account_id | string | |
DeleteJobRunResponse
GenerateSourceOptions
GenerateSourceSchemaOption
GenerateSourceTableOption
Name | Type | Description |
---|
table | string | |
row_count | int64 | |
GetJobNextRunsRequest
Name | Type | Description |
---|
job_id | string | |
GetJobNextRunsResponse
GetJobRecentRunsRequest
Name | Type | Description |
---|
job_id | string | |
GetJobRecentRunsResponse
GetJobRequest
Name | Type | Description |
---|
id | string | |
GetJobResponse
Name | Type | Description |
---|
job | Job | |
GetJobRunEventsRequest
Name | Type | Description |
---|
job_run_id | string | |
account_id | string | |
GetJobRunEventsResponse
GetJobRunLogsStreamRequest
Name | Type | Description |
---|
job_run_id | string | |
account_id | string | |
window | LogWindow | The time window in which to retrieve the logs |
should_tail | bool | Whether or not to tail the stream. Note: only works with k8s-pods and is not currently supported with Loki logs |
max_log_lines | optional int64 | Optionally provide a max log limit |
log_levels | repeated LogLevel | Provide a list of log levels to filter by. If any of these are UNSPECIFIED, all log levels are returned. |
GetJobRunLogsStreamResponse
Name | Type | Description |
---|
log_line | string | |
timestamp | optional google.protobuf.Timestamp | |
GetJobRunRequest
Name | Type | Description |
---|
job_run_id | string | |
account_id | string | |
GetJobRunResponse
Name | Type | Description |
---|
job_run | JobRun | |
GetJobRunsRequest
Name | Type | Description |
---|
job_id | string | |
account_id | string | |
GetJobRunsResponse
GetJobStatusRequest
Name | Type | Description |
---|
job_id | string | |
GetJobStatusResponse
GetJobStatusesRequest
Name | Type | Description |
---|
account_id | string | |
GetJobStatusesResponse
GetJobsRequest
Name | Type | Description |
---|
account_id | string | |
GetJobsResponse
IsJobNameAvailableRequest
Name | Type | Description |
---|
name | string | |
account_id | string | |
IsJobNameAvailableResponse
Name | Type | Description |
---|
is_available | bool | |
Job
Name | Type | Description |
---|
id | string | The unique identifier of the job |
created_by_user_id | string | |
created_at | google.protobuf.Timestamp | |
updated_by_user_id | string | |
updated_at | google.protobuf.Timestamp | |
name | string | The unique, friendly name of the job |
source | JobSource | |
destinations | repeated JobDestination | |
mappings | repeated JobMapping | |
cron_schedule | optional string | |
account_id | string | The account identifier that a job is associated with |
sync_options | ActivityOptions | Specify timeout and retry options for data synchronization activities
Data sync activities are any piece of work that involves actually synchronizing data from a source to a destination
For the data sync and generate jobs, this will be applied per table |
workflow_options | WorkflowOptions | Specify timeouts and other workflow options for the underlying temporal workflow |
JobDestination
JobDestinationOptions
JobMapping
JobNextRuns
Name | Type | Description |
---|
next_run_times | repeated google.protobuf.Timestamp | |
JobRecentRun
Name | Type | Description |
---|
start_time | google.protobuf.Timestamp | |
job_run_id | string | |
JobRun
Name | Type | Description |
---|
id | string | The id of the job run. This will currently be equivalent to the temporal workflow id |
job_id | string | The unique identifier of the job id this run is associated with |
name | string | The name of the job run. |
status | JobRunStatus | the status of the job run |
started_at | google.protobuf.Timestamp | A timestamp of when the run started |
completed_at | optional google.protobuf.Timestamp | Available if the run completed or has not yet been archived by the system |
pending_activities | repeated PendingActivity | Pending activities are only returned when retrieving a specific job run and will not be returned when requesting job runs in list format |
JobRunEvent
JobRunEventTask
JobRunEventTaskError
Name | Type | Description |
---|
message | string | |
retry_state | string | |
Name | Type | Description |
---|
schema | string | |
table | string | |
JobSource
JobSourceOptions
JobSourceSqlSubetSchemas
JobStatusRecord
Name | Type | Description |
---|
job_id | string | |
status | JobStatus | |
MysqlDestinationConnectionOptions
MysqlOnConflictConfig
Name | Type | Description |
---|
do_nothing | bool | |
MysqlSourceConnectionOptions
MysqlSourceSchemaOption
MysqlSourceSchemaSubset
MysqlSourceTableOption
Name | Type | Description |
---|
table | string | |
where_clause | optional string | |
MysqlTruncateTableConfig
Name | Type | Description |
---|
truncate_before_insert | bool | |
PauseJobRequest
Name | Type | Description |
---|
id | string | |
pause | bool | |
note | optional string | |
PauseJobResponse
Name | Type | Description |
---|
job | Job | |
PendingActivity
PostgresDestinationConnectionOptions
PostgresOnConflictConfig
Name | Type | Description |
---|
do_nothing | bool | |
PostgresSourceConnectionOptions
PostgresSourceSchemaOption
PostgresSourceSchemaSubset
PostgresSourceTableOption
Name | Type | Description |
---|
table | string | |
where_clause | optional string | |
PostgresTruncateTableConfig
Name | Type | Description |
---|
truncate_before_insert | bool | |
cascade | bool | |
RetryPolicy
Defines the retry policy for an activity
Name | Type | Description |
---|
maximum_attempts | optional int32 | Maximum number of attempts. When exceeded the retries stop even if not expired yet.
If not set or set to 0, it means unlimited, and rely on activity ScheduleToCloseTimeout to stop. |
SetJobSourceSqlConnectionSubsetsRequest
SetJobSourceSqlConnectionSubsetsResponse
Name | Type | Description |
---|
job | Job | |
SetJobSyncOptionsRequest
Name | Type | Description |
---|
id | string | The unique identifier of the job |
sync_options | ActivityOptions | The sync options object. The entire object must be provided and will fully overwrite the previous result |
SetJobSyncOptionsResponse
Name | Type | Description |
---|
job | Job | |
SetJobWorkflowOptionsRequest
Name | Type | Description |
---|
id | string | The unique identifier of the job |
worfklow_options | WorkflowOptions | The workflow options object. The entire object must be provided and will fully overwrite the previous result |
SetJobWorkflowOptionsResponse
Name | Type | Description |
---|
job | Job | |
TerminateJobRunRequest
Name | Type | Description |
---|
job_run_id | string | |
account_id | string | |
TerminateJobRunResponse
UpdateJobDestinationConnectionRequest
UpdateJobDestinationConnectionResponse
Name | Type | Description |
---|
job | Job | |
UpdateJobScheduleRequest
Name | Type | Description |
---|
id | string | |
cron_schedule | optional string | |
UpdateJobScheduleResponse
Name | Type | Description |
---|
job | Job | |
UpdateJobSourceConnectionRequest
UpdateJobSourceConnectionResponse
Name | Type | Description |
---|
job | Job | |
WorkflowOptions
Config that contains various timeouts that are configured in the underlying temporal workflow
More options will come in the future as needed
Name | Type | Description |
---|
run_timeout | optional int64 | The timeout for a single workflow run.
Measured in seconds |
Enums
ActivityStatus
Name | Number | Description |
---|
ACTIVITY_STATUS_UNSPECIFIED | 0 | |
ACTIVITY_STATUS_SCHEDULED | 1 | |
ACTIVITY_STATUS_STARTED | 2 | |
ACTIVITY_STATUS_CANCELED | 3 | |
ACTIVITY_STATUS_FAILED | 4 | |
JobRunStatus
An enumeration of job run statuses.
Name | Number | Description |
---|
JOB_RUN_STATUS_UNSPECIFIED | 0 | if the job run status is unknown |
JOB_RUN_STATUS_PENDING | 1 | the run is pending and has not started yet |
JOB_RUN_STATUS_RUNNING | 2 | the run is currently in progress |
JOB_RUN_STATUS_COMPLETE | 3 | the run has successfully completed |
JOB_RUN_STATUS_ERROR | 4 | the run ended with an error |
JOB_RUN_STATUS_CANCELED | 5 | the run was cancelled |
JOB_RUN_STATUS_TERMINATED | 6 | the run was terminated |
JOB_RUN_STATUS_FAILED | 7 | the run ended in failure |
JOB_RUN_STATUS_TIMED_OUT | 8 | the run was ended pre-maturely due to timeout |
JobStatus
Name | Number | Description |
---|
JOB_STATUS_UNSPECIFIED | 0 | |
JOB_STATUS_ENABLED | 1 | |
JOB_STATUS_PAUSED | 3 | |
JOB_STATUS_DISABLED | 4 | |
LogLevel
Name | Number | Description |
---|
LOG_LEVEL_UNSPECIFIED | 0 | |
LOG_LEVEL_DEBUG | 1 | |
LOG_LEVEL_INFO | 2 | |
LOG_LEVEL_WARN | 3 | |
LOG_LEVEL_ERROR | 4 | |
LogWindow
Name | Number | Description |
---|
LOG_WINDOW_NO_TIME_UNSPECIFIED | 0 | |
LOG_WINDOW_FIFTEEN_MIN | 1 | |
LOG_WINDOW_ONE_HOUR | 2 | |
LOG_WINDOW_ONE_DAY | 3 | |
Services
JobService
GetJobs
GetJob
CreateJob
DeleteJob
IsJobNameAvailable
UpdateJobSchedule
UpdateJobSourceConnection
SetJobSourceSqlConnectionSubsets
UpdateJobDestinationConnection
DeleteJobDestinationConnection
CreateJobDestinationConnections
PauseJob
GetJobRecentRuns
Method | GetJobRecentRuns |
---|
Request | GetJobRecentRunsRequest |
---|
Response | GetJobRecentRunsResponse |
---|
Description | Returns a list of recently invoked job runs baseds on the Temporal cron scheduler. This will return a list of job runs that include archived runs |
---|
GetJobNextRuns
GetJobStatus
GetJobStatuses
GetJobRuns
GetJobRunEvents
GetJobRun
DeleteJobRun
CreateJobRun
CancelJobRun
TerminateJobRun
GetJobRunLogsStream
SetJobWorkflowOptions
SetJobSyncOptions