Browser automationQueue and execution

Worker runtime

Run the foreground or service-managed worker and follow one claimed action through completion.

Worker runtime — contract and behavior

  • scripts/worker/run.mjs is the foreground and service entry point.
  • Atomic claim prevents two workers from executing the same account_action_logs row concurrently.
  • One trajectory subprocess per row contains failure and makes lifecycle state attributable to one action.
  • The worker writes terminal outcome and evidence back to the queue record rather than relying on process exit alone.

Commands and examples

Foreground worker
node scripts/worker/run.mjs

Stay in the loop. Never miss out.

Subscribe to our newsletter and unlock Wisent insights.