generated from coulomb/repo-seed
Add schedule smoke test routine
This commit is contained in:
@@ -129,6 +129,24 @@ This reconciles all Temporal Schedules with the `activity_definitions` table:
|
||||
- Creates paused schedules for disabled cron definitions
|
||||
- Deletes orphaned schedules with no matching DB row
|
||||
|
||||
After adding or changing a recurring ActivityDefinition or workflow activity
|
||||
wiring, run a smoke schedule before trusting the next real fire:
|
||||
|
||||
```bash
|
||||
ACTCORE_DB_URL=postgresql+asyncpg://actcore:actcore@localhost:5433/actcore \
|
||||
TEMPORAL_HOST=localhost:7233 \
|
||||
uv run python scripts/smoke_test_schedule.py \
|
||||
--activity-id <activity-definition-uuid> \
|
||||
--recreate-recurring
|
||||
```
|
||||
|
||||
The smoke command deletes and recreates the recurring Temporal Schedule when
|
||||
`--recreate-recurring` is set, creates a distinct one-shot smoke Schedule one
|
||||
minute in the future, waits for the smoke workflow to complete, and exits
|
||||
non-zero if the workflow fails or times out. Use this after worker deployments
|
||||
that add workflow imports or new activities; it catches stale-worker and missing
|
||||
activity registration issues before the next scheduled run.
|
||||
|
||||
---
|
||||
|
||||
## Temporal UI — filtering by activity
|
||||
|
||||
Reference in New Issue
Block a user