Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: triggerdotdev/trigger.dev
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: triggerdotdev/trigger.dev
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: mollifier-phase-1
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 20 files changed
  • 1 contributor

Commits on May 13, 2026

  1. feat: trigger mollifier phase 1 scaffolding

    Redis-backed burst-smoothing layer behind MOLLIFIER_ENABLED=0 (default).
    With the kill switch off, the gate short-circuits on its first env check
    and production behaviour is identical to main.
    
    @trigger.dev/redis-worker:
    - MollifierBuffer: atomic Lua-backed FIFO with accept / pop / ack /
      requeue / fail + TTL. Per-env queues with HSET entry storage,
      atomic RPOP + status transition, FIFO retry ordering.
    - MollifierDrainer: generic round-robin worker with concurrency cap,
      retry semantics, and a stop deadline to avoid livelock on a hung
      handler. Phase 3 will wire the handler to engine.trigger().
    - Full testcontainers-backed test suite (21 tests).
    
    apps/webapp:
    - evaluateGate cascade-check (kill switch -> org feature flag ->
      shadow mode -> trip evaluator -> mollify / shadow_log / pass_through).
      Dependencies injected for testability; the trip evaluator stub
      returns { divert: false } in phase 1.
    - Inserted into RunEngineTriggerTaskService.call() before
      traceEventConcern.traceRun. The mollify branch throws (unreachable
      in phase 1).
    - Lazy MollifierBuffer + MollifierDrainer singletons; no Redis
      connection unless MOLLIFIER_ENABLED=1.
    - 12 MOLLIFIER_* env vars (all safe defaults) and a mollifierEnabled
      feature flag in the global catalog.
    - Drainer booted from worker.server.ts on first import.
    - Read-fallback stub for phase 3.
    - Gate cascade tests + .env loader so env.server validates in vitest
      workers.
    
    Phase 2 will land the real trip evaluator; phase 3 will activate the
    buffer-write + drain path.
    d-cs committed May 13, 2026
    Configuration menu
    Copy the full SHA
    f2ab40b View commit details
    Browse the repository at this point in the history
Loading