2026-03-24 12:25:29 +00:00
|
|
|
id: ks2-reimport
|
|
|
|
|
namespace: schoolcompare.data
|
|
|
|
|
description: Re-import KS2 attainment data from bundled CSV files (use after DB wipe)
|
|
|
|
|
|
|
|
|
|
# No scheduled trigger — run manually from the Kestra UI when needed.
|
|
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
|
- id: reimport
|
|
|
|
|
type: io.kestra.plugin.core.http.Request
|
|
|
|
|
uri: http://integrator:8001/run/ks2?action=load
|
|
|
|
|
method: POST
|
|
|
|
|
allowFailed: false
|
|
|
|
|
timeout: PT20M # full migration takes ~10 min; give headroom
|
|
|
|
|
|
|
|
|
|
errors:
|
|
|
|
|
- id: notify-failure
|
|
|
|
|
type: io.kestra.plugin.core.log.Log
|
|
|
|
|
message: "KS2 re-import FAILED: {{ error.message }}"
|
|
|
|
|
|
|
|
|
|
retry:
|
2026-03-24 20:08:17 +00:00
|
|
|
type: constant
|
2026-03-24 12:25:29 +00:00
|
|
|
maxAttempts: 2
|
2026-03-24 20:08:17 +00:00
|
|
|
interval: PT5M
|