Breadcrumbs

RudderStack - Check Sync Status (Deprecated)

Overview

This Blueprint has been deprecated. Please use the vendor's "Trigger" Blueprint and set the "Wait for Completion" option to "True". Using this new option is free, more stable, and will complete faster. Read more about this change here.

Check for the status of a Rudderstack source. The Vessel's exit code and status will match the status of the latest sync.

Status Codes

  • If the sync finishes successfully, an exit code of 0 will be returned.

  • If the sync is incomplete, an exit code of 210 will be returned.

  • If the sync is finished but has errored, an exit code of 211 will be returned.

  • If the sync has finished but the status is invalid, an exit code of 212 will be returned.

  • If the sync's status is unknown, an exit code of 213 will be returned.

The response for this request will always be stored at shipyard-artifacts/rudderstack-blueprints/responses/sync_run_{source_id}_response.json.

Recommended Setup: 1. A Vessel built with this Blueprint should be paired with guardrail retries. This will allow the Vessel to continually check for status until a final result is found. 2. This Vessel should run immediately after a Vessel built with the Trigger Sync Blueprint. With this setup, you can leave the Source ID field blank and this Vessel will check for the results of the recently created sync.

Variables

Name

Reference

Type

Required

Default

Options

Description

Access Token

RUDDERSTACK_ACCESS_TOKEN

Password

None

-

The access token associated with your Rudderstack account.

Source ID

RUDDERSTACK_SOURCE_ID

Alphanumeric

None

-

The ID of the Rudderstack source you want to refresh. This should be left blank if connected to an Trigger Sync Blueprint.

YAML

Below is the YAML template

YAML

source:
  template: RudderStack - Check Sync Status (Deprecated)
  inputs:
    RUDDERSTACK_ACCESS_TOKEN:
    RUDDERSTACK_SOURCE_ID:
  type: TEMPLATE
guardrails:
  retry_count: 1
  retry_wait: 0h0m0s
  runtime_cutoff: 1h0m0s
  exclude_exit_code_ranges:
    - 200
    - 203
    - 204
    - 211
    - 212