Files
wehub-resource-sync a9cd7750f4
CI / unit-test (push) Has been cancelled
CI / detect-changes (push) Has been cancelled
CI / build (push) Has been cancelled
Publish docs via GitHub Pages / Deploy docs (push) Has been cancelled
CI / test-harness (push) Has been cancelled
CI / generate-e2e-matrix (push) Has been cancelled
CI / e2e (push) Has been cancelled
CI / build-ui (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
UI v2 Integration CI / E2E (Integration) (push) Has been cancelled
UI v2 CI / Lint, Format & Test (push) Has been cancelled
UI v2 CI / E2E (Mocked) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:37:56 +08:00

33 lines
1.1 KiB
Bash

#!/bin/sh
# Seed script for the Conductor Scheduler Demo.
# Registers the sample workflow and a 1-minute demo schedule.
# Runs once inside the conductor-seed container after Conductor is healthy.
set -e
BASE_URL="http://conductor-server:8080"
echo "==> Registering daily_report_workflow..."
curl -sf -X POST "${BASE_URL}/api/metadata/workflow" \
-H "Content-Type: application/json" \
-d @/examples/daily-report-workflow.json
echo ""
echo "==> Creating every-minute-demo-schedule..."
curl -sf -X POST "${BASE_URL}/api/scheduler/schedules" \
-H "Content-Type: application/json" \
-d @/examples/every-minute-schedule.json
echo ""
echo ""
echo "=========================================="
echo " Scheduler demo is ready!"
echo ""
echo " Conductor UI: http://localhost:5000"
echo " Conductor API: http://localhost:8080"
echo " Swagger: http://localhost:8080/swagger-ui/index.html"
echo ""
echo " Watch executions:"
echo " curl -s 'http://localhost:8080/api/scheduler/search/executions?freeText=every-minute-demo-schedule&size=5' | jq ."
echo "=========================================="