pub struct QueuedDataMigrationRun {
pub job_id: Uuid,
pub run_id: i64,
}Expand description
QueuedDataMigrationRun : Two handles onto a run that has been queued, not performed (#1212). run no longer waits for the copy: it returns as soon as the job is on the queue, so this object carries no counts. The outcome is the job’s result (MigrationResult, via /jobs_u/get/{id}), progress is /jobs/get_progress/{id} and the job SSE stream, and cancellation is /jobs_u/queue/cancel/{id} – a data migration deliberately gets no bespoke status surface.
Fields§
§job_id: UuidThe queued job. Its result, progress, logs and cancel control all hang off this id through the ordinary job endpoints.
run_id: i64data_migration_run.id of this run’s row, which already exists (status = 'running') when this response is sent. Pass it back as resume_run_id to continue an interrupted run – including one that was cancelled, since the stop is taken after the checkpoint for that batch is durable.
Implementations§
Source§impl QueuedDataMigrationRun
impl QueuedDataMigrationRun
Sourcepub fn new(job_id: Uuid, run_id: i64) -> QueuedDataMigrationRun
pub fn new(job_id: Uuid, run_id: i64) -> QueuedDataMigrationRun
Two handles onto a run that has been queued, not performed (#1212). run no longer waits for the copy: it returns as soon as the job is on the queue, so this object carries no counts. The outcome is the job’s result (MigrationResult, via /jobs_u/get/{id}), progress is /jobs/get_progress/{id} and the job SSE stream, and cancellation is /jobs_u/queue/cancel/{id} – a data migration deliberately gets no bespoke status surface.