{{ logo }}

{{ name }}

{{ nav }}

{{ title }}

{% if not read_only %}Edit pipeline{% endif %}
{% if diagram %} {% include "_automation_graph.html" %} {% endif %}
  1. Workflow{{ spec.workflow.id }}
  2. Runs{{ 'after each update' if spec.delivery.policy == 'on_update' else 'by hand' }}
  3. Destination{{ destination_title }}
  4. Delivery{{ spec.delivery.mode | replace('_', ' ') }}

Definition

{{ spec.workflow.id }} to {{ destination_title }}, revision {{ revision }}, created {{ created_at | when }}
Workflow
{{ spec.workflow.id }}
{% for a in arguments %}
{{ a.name }}
{{ a.value }}
{% endfor %}
Source kept current
{{ source_schedule }}
Runs
{{ 'after each update of a source dataset, over the updated interval' if spec.delivery.policy == 'on_update' else 'only when run by hand' }}{% if automation_since %}; updates since {{ automation_since | when }}{% endif %}
Destination
{{ destination_title }}
Revision
{{ revision }}
Created
{{ created_at | when }}

Destination settings

{% if settings_items %}
{% for item in settings_items %}
{{ item.title }}
{% if item.rows is not none %} {% if item.rows %}
    {% for row in item.rows %}
  • {% for cell in row %}{{ cell.title }} {% if cell.label %}{{ cell.label }} {{ cell.value }}{% else %}{{ cell.value }}{% endif %}{% endfor %}
  • {% endfor %}
{% else %}none{% endif %} {% elif item.label %}{{ item.label }} {{ item.value }} {% else %}{{ item.value }}{% endif %}
{% endfor %}

Names were read from the destination at the last validation; the ids are what the pipeline stores.

Settings as JSON
{{ settings }}
{% else %}
{{ settings }}
{% endif %} {% if export %}

Export definition

Compiled by the destination plugin at the last validation. Runs save, and deliveries send, through this export, named after the pipeline.

{{ export }}
{% endif %}
{% set validation_state = 'fail' if validation and not validation.valid else ('pass' if validation else 'none') %}

Validation

{% if validation %}{{ 'valid' if validation.valid else 'invalid' }}{% if validation.valid %}every check passed{% else %}{{ validation.checks | selectattr('status', 'equalto', 'fail') | list | length }} check(s) failed{% endif %}, {{ validation.checked_at | when }}{% else %}not checked{% endif %}

Checked when the pipeline was saved. The workflow, its inputs and the destination can all change afterwards, so re-check before relying on an old result. Going live always re-checks.

{% if validation %}
    {% for c in validation.checks %}
  • {{ c.status }}{{ c.id }}{{ c.message }}
  • {% endfor %}

Checked {{ validation.checked_at | when }}.

{% endif %} {% if not read_only %}
{% endif %}
{% set dry_run_state = 'none' if not dry_run else ('pass' if approved else 'fail') %}

Dry run

{% if not dry_run %}not run {% elif approved %}passedapproves the current bindings, {{ dry_run.ran_at | when }} {% elif dry_run_passed %}stalepassed for earlier bindings; dry-run again {% else %}failed{{ dry_run.error or 'the destination did not accept it' }}{% endif %}

Runs the pipeline over the range below without storing anything at the destination: its workflow is executed, the result rendered through the destination and, where the destination supports it, submitted as a dry run, validated there and stored nowhere. A passed dry run approves these exact bindings for live delivery; changing the workflow, its arguments or the destination needs a new one.

{% if dry_run %} {% if dry_run.error %} {% else %}
{{ dry_run.values }}values
{{ dry_run.periods | length }}periods
{% if dry_run.report %}
{{ dry_run.report.conflicts | length }}conflicts
{% endif %}
Range
{{ dry_run.start }} to {{ dry_run.end }}
{% if dry_run.report %}
Destination outcome
{{ dry_run.report.outcome }}{% if dry_run.report.message %}: {{ dry_run.report.message }}{% endif %}
Counts
submitted {{ dry_run.report.submitted }}, would import {{ dry_run.report.imported }}, would update {{ dry_run.report.updated }}, ignored {{ dry_run.report.ignored }}
{% elif dry_run.rendered_only %}
Destination outcome
rendered only; this destination cannot validate a dry run
{% endif %}
Approval
{% if approved %}approves the current bindings{% elif dry_run_passed %}passed for earlier bindings; dry-run again{% else %}not passed{% endif %}
{% if dry_run.report and dry_run.report.conflicts %}
{% for c in dry_run.report.conflicts %}{% endfor %}
ObjectValue
{{ c.object }}{{ c.value }}
{% endif %} {% if dry_run.sample %}

A sample of {{ dry_run.sample | length }} of the {{ dry_run.values }} values, as the destination picked them; the whole payload was {% if dry_run.report %}submitted{% else %}rendered{% endif %}.

{% set columns = dry_run.sample[0].keys() | list %}
{% for k in columns %}{% endfor %}{% for v in dry_run.sample %}{% for k in columns %}{% set cell = v[k] %}{% endfor %}{% endfor %}
{{ k }}
{% if cell is mapping %}{{ cell.label }}{% else %}{{ cell }}{% endif %}
{% endif %} {% endif %}

Ran {{ dry_run.ran_at | when }}.

{% endif %} {% if not read_only %}
Runs synchronously; a long range takes a while.
{% endif %}

Delivery

{% if spec.delivery.mode == 'live' %}Live: runs deliver to the destination and are stored there. {% elif spec.delivery.mode == 'dry_run' %}Dry run: runs deliver as dry runs; the destination validates and stores nothing. {% else %}Paused: no run starts by itself and no result is sent by itself. Running jobs finish and keep their results; their deliveries are held until delivered by hand.{% endif %}

{% if not read_only %}
{% if spec.delivery.mode == 'dry_run' %}
{% elif spec.delivery.mode == 'live' %}
{% else %}
{% endif %} Each switch re-runs every check, the destination's included. Resuming does not replay updates that arrived while paused; run their interval by hand.
{% endif %}

Runs

Every run of the pipeline, by hand or after an update, executes its workflow over an explicit interval as a batch job, saves the result through the pipeline's export, and delivers it when the job finishes. A live run needs the pipeline to be live.

{% if runs %}
{% for r in runs %} {% set stopped = r.submission == 'failed' or r.job_outcome or r.job_status in ['error', 'canceled'] %} {% endfor %}
SubmittedTriggerIntervalModeJobDelivery
{{ r.submitted_at | when }} {{ r.trigger | replace('_', ' ') }}{% if r.source.dataset_id %} {{ r.source.dataset_id }}{% endif %} {{ r.start }} to {{ r.end }} {{ r.mode | replace('_', ' ') }}{% if r.submission == 'submitted' %}{{ r.job_id[:8] }} {% endif %}{% if r.submission == 'failed' %}submission failed{% elif r.submission == 'pending' %}submitting{% if r.submission_attempts %}, attempt {{ r.submission_attempts + 1 }}{% endif %}{% elif r.job_outcome == 'missing' %}job deleted{% else %}{{ r.job_status }}{% endif %} {% if r.submission != 'submitted' and r.error %}{{ r.error }}{% endif %} {% if stopped and not read_only %}
{% endif %}
{% if r.delivery_job_id %}{{ r.delivery_status }}{% if r.delivery_outcome %} {{ r.delivery_outcome }}{% if r.delivery_submitted is not none %} {{ r.delivery_submitted }} values, {{ r.delivery_conflicts }} conflicts{% endif %}{% endif %} {% if r.delivery_result %}{{ r.delivery_result }}{% endif %} {% if r.delivery_result in ['partial', 'rejected', 'unknown', 'failed', 'cancelled'] and not read_only %} {% if r.error %}{{ r.error }}{% endif %}
{% endif %} {% elif r.submission == 'submitted' and not r.job_outcome %} {% if r.delivery == 'held' %}held until the pipeline is resumed{% if r.mode == 'live' %} and live{% endif %} {% elif r.delivery == 'failed' %}hand-off failed {% elif r.error %}retrying (attempt {{ r.delivery_attempts }}): {{ r.error }}{% endif %} {% if r.delivery == 'failed' and r.error %}{{ r.error }}{% endif %} {% if r.job_status == 'finished' and not read_only %}
{% elif r.job_status != 'finished' %}after the job finishes{% endif %} {% else %}nothing to deliver {% endif %}
{% endif %} {% if skipped %}

Updates not run

Dataset updates this pipeline did not run, and why. None is run later by itself; to cover one, run its interval once. This is a bounded list of the most recent {{ skipped_kept }}, not an audit trail.

{% if skipped_discarded %}
{{ skipped_discarded }} older entr{{ 'y was' if skipped_discarded == 1 else 'ies were' }} discarded from this list, the newest for an update at {{ skipped_discarded_through | when }}. The updates themselves remain in the job history.
{% endif %}
{% for u in skipped %}{% endfor %}
UpdateDatasetIntervalReason
{{ u.time | when }}{{ u.dataset_id or '' }}{% if u.start %}{{ u.start }} to {{ u.end }}{% endif %}{{ u.reason }}
{% endif %} {% if not read_only %}
For a catch-up or a backfill, choose the interval. Runs in the background; this page shows the job and its delivery.
{% endif %}
{% if not read_only %}

Delete

removes this pipeline from the geoservice

Removes this pipeline and its run history from the geoservice. Jobs, results and deliveries already made are kept.

{% endif %}