POST /platform/jobs/{jobId}/reset-state

Reset job incremental state

Overview

Reset the incremental state for a job, forcing the next execution to perform a full extraction. This endpoint works for all connector types: JDBC, Singer, and S3.

When to Use

Use this endpoint when you need to:

  • Re-sync all data after fixing data quality issues
  • Recover from errors that corrupted the incremental state
  • Backfill historical data that was missed
  • Change incremental column and need fresh state
  • Debug pipeline issues by starting from scratch

Job ID Format

The jobId follows the format: {pipeline_id}_{job_index}

Example: 1b33ad2f_33d3_4837_9eeb_83c82c8b909d_0 (first job in pipeline 1b33ad2f_33d3_4837_9eeb_83c82c8b909d)

What Gets Reset

Connector TypeState Reset
JDBCClears incremental_column_value - next run extracts all records
SingerClears state_file bookmarks - next run performs full sync
S3Clears ConnectorState - next run processes all files regardless of LastModified

Examples

Reset JDBC Job State

POST /platform/jobs/1b33ad2f_33d3_4837_9eeb_83c82c8b909d_0/reset-state

Response (200 OK):

{
  "status": true,
  "detail": "Successfully reset state for job_id 1b33ad2f_33d3_4837_9eeb_83c82c8b909d_0",
  "message": "Next job execution will start from beginning (full load/extraction)"
}

Reset Singer Job State

POST /platform/jobs/a9f82c14_7e21_4b5a_8c9d_12345abcdef0_0/reset-state

Response (200 OK):

{
  "status": true,
  "detail": "Successfully reset state for job_id a9f82c14_7e21_4b5a_8c9d_12345abcdef0_0",
  "message": "Next job execution will start from beginning (full load/extraction)"
}

Reset S3 Job State

POST /platform/jobs/c5d92e18_4f31_4a2b_9c8d_67890fghijk0_0/reset-state

Response (200 OK):

{
  "status": true,
  "detail": "Successfully reset state for job_id c5d92e18_4f31_4a2b_9c8d_67890fghijk0_0",
  "message": "Next job execution will start from beginning (full load/extraction)"
}

Error Responses

404 Not Found

{
  "detail": "job_id invalid_job_id not found"
}

500 Internal Server Error

{
  "detail": "Unable to complete state reset due to database error"
}

Behavior by Load Type

JDBC Connectors

Load TypeBefore ResetAfter Reset
full_loadNo effect (always full)No change
incrementalTracks incremental_column_valueValue cleared, next run extracts all
incremental_with_qualifyTracks incremental_column_valueValue cleared, next run extracts all + deduplicates

Singer Connectors

All Singer connectors maintain a state_file with bookmarks for incremental sync. After reset:

  • All bookmarks are cleared
  • Next sync performs full extraction for all streams
  • New bookmarks are created after successful sync

S3/Azure Connectors

S3 connectors track which files have been processed using the ConnectorState. After reset:

  • File processing state is cleared
  • Next run processes all files in the configured prefix
  • New state is recorded based on LastModified timestamps

Use Cases

Re-sync After Schema Change

If you added new columns to the source table and want to backfill data:

# 1. Add new columns to the job
PATCH /platform/jobs/1b33ad2f_33d3_4837_9eeb_83c82c8b909d_0/input
{
  "column_include_list": ["new_column_1", "new_column_2"]
}

# 2. Reset state to trigger full extraction
POST /platform/jobs/1b33ad2f_33d3_4837_9eeb_83c82c8b909d_0/reset-state

# 3. Execute the pipeline (or wait for scheduled run)
POST /platform/pipeline/execute
{
  "pipeline_id": "1b33ad2f_33d3_4837_9eeb_83c82c8b909d",
  "customer_id": "your_customer_id"
}

Recover From Data Quality Issue

If source data was corrupted and later fixed:

# Reset state to re-extract all data
POST /platform/jobs/1b33ad2f_33d3_4837_9eeb_83c82c8b909d_0/reset-state

Re-process All S3 Files

If you need to reprocess all files in an S3 bucket:

# Reset state - next run will process all files
POST /platform/jobs/c5d92e18_4f31_4a2b_9c8d_67890fghijk0_0/reset-state

Notes

  • State reset is immediate - no pipeline execution is triggered
  • The next scheduled or manual pipeline run will perform full extraction
  • For incremental_with_qualify jobs, the qualify (deduplication) step will still run
  • Consider the data volume impact before resetting - full extraction may take significantly longer
  • This operation cannot be undone - the previous incremental state is permanently cleared
Language
Credentials
Header
Click Try It! to start a request and see the response here!