You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
improvement(execution): cut the time between a workflow trigger and its first block (#8434)
* improvement(execution): cut the time between a workflow trigger and its first block
- Trigger.dev getJob only retrieves real run ids; caller-chosen ids (schedule_…,
workflow-execution:…) go straight to the tag lookup instead of a ~10 s 404
- Execution-log start resolves the snapshot id (cached once referenced) and inserts
with ON CONFLICT instead of select + full-state upsert RETURNING * + insert
- Preprocessing starts payer attribution and the ban/usage/subscription gate reads as
soon as their inputs are known; subscription is only read when needed
- Execution core prefetches env + PII policy alongside custom blocks and reuses the
webhook job's already-loaded environment
- Webhook lookups answer trigger-block deployment from the join they already do;
versioned deployment loads serve the materialized cache first
- getHighestPrioritySubscription, custom-block rows, and env suspension lookups drop
sequential round trips
* fix(execution): scope the snapshot FK retry, keep a suspended identity's access read out of the run, tidy tests
* improvement(execution): encapsulate early admission reads, plain snapshot identity, explicit suspension paths
* improvement(environment): reuse the actor's resolved access when withholding a suspended identity
0 commit comments