Skip to main content

plantpulse-workflow (Workflow)

Role​

Orchestration of long-running jobs and data pipelines. Runs two engines together.

EnginePurpose
TemporalDistributed workflow, long-running jobs (retry · compensation transaction). The admin console's own durable workflows also run here
KestraDeclarative data pipelines · scheduling. The warehouse archiver submits jobs to it
ItemValue
Module nameplantpulse-workflow
Installation path/opt/kopens/plantpulse-platform/plantpulse-workflow/
Temporal7233 (gRPC) · 8233 (web UI, HTTP)
Kestra8380 (web UI + API, TLS-only) · 8391 (admin endpoint, internal)
pd serviceworkflow — MASTER only. temporal → kestra
Archive worker is not here (2026-09-06)

The Aster TSDB → Iceberg archiver was briefly a third component of this service but has been moved to the plantpulse-warehouse-web container of the platform image. This is because the data lake is infrastructure, and "which table is archived when and how" is business logic → warehouse module

Configuration​

Directory Structure​

plantpulse-workflow/
├── temporal/
│ ├── bin/
│ ├── config/workflow.yaml # 생성물 ← /etc/kopens/conf/workflow.yaml.template
│ └── logs/
└── kestra/
├── bin/
├── config/application.yaml # 생성물 ← /etc/kopens/conf/application.yaml.template
└── logs/

Temporal​

ItemValue
Port7233 (frontend gRPC) · 8233 (web UI) · 7243 (HTTP API) · 7234/7235/7239 (internal services)
BackendPostgreSQL DB temporal · temporal_visibility, account temporal (PP_TEMPORAL_USER / PP_TEMPORAL_PASSWORD)
Advertise addressbroadcastAddress = PP_TEMPORAL_HOST — if it's loopback, the renderer rejects it
Metrics8244 (127.0.0.1 only, read by the admin console)

PP_TEMPORAL_PASSWORD is not a Temporal account in itself but a backend PostgreSQL account. passwd.sh changes it to ALTER ROLE.

The web UI http://<server-ip>:8233/ has no login. Keep it open only on the private network.

docker exec plantpulse-datalake bash -c 'cd /opt/kopens/plantpulse-platform/plantpulse-workflow/temporal && ./bin/temporal --address 127.0.0.1:7233 workflow list'

Kestra​

ItemValue
Port8380 — TLS-only, http:// does not respond. / redirects to /ui/
LoginPP_KESTRA_ADMIN_EMAIL / PP_KESTRA_ADMIN_PASSWORD (basic-auth)
BackendPostgreSQL DB kestra, account kestra (PP_KESTRA_DB_USER / PP_KESTRA_DB_PASSWORD) — different from the login account
Storage/data1/pp-data/kestra/storage

Neither password is a target for passwd.sh → Web console login account — Kestra, Non-rotated values

Example Flow​

id: daily-report
namespace: plantpulse
description: 매일 새벽 2시에 보고서 스크립트 실행

triggers:
- id: every-2am
type: io.kestra.plugin.core.trigger.Schedule
cron: "0 2 * * *"

tasks:
- id: run
type: io.kestra.plugin.scripts.shell.Commands
commands:
- echo "report"

Operational Commands​

docker exec plantpulse-datalake pd status workflow
docker exec plantpulse-datalake pd restart workflow # Temporal + Kestra
docker exec plantpulse-datalake pd logs --lines 100 workflow

Common Issues​

SymptomCauseResolution
Temporal fails to startPostgreSQL not ready · temporal role password mismatchpd status storage, passwd.sh PP_TEMPORAL_PASSWORD
Kestra fails to startkestra role password mismatchPP_KESTRA_DB_PASSWORD of the sidecar — at boot, pd aligns with the role
http://…:8380 won't openTLS-onlyhttps://
Archive not workingWarehouse sidepd retention's cold_tier · archive_job, warehouse container logs
Temporal broadcastAddress error · render exits with code 8Loopback addressNode file → How to change settings