emit.run

Spaces

Organizing jobs with spaces

Spaces

Spaces are the top-level container for jobs. Each space belongs to an organization and acts as an isolated queue with its own jobs, tokens, and event stream.

Creating a Space

  1. Go to your organization in the dashboard
  2. Click Create Space
  3. Enter a name (e.g., production, staging, email-jobs)

How Spaces Isolate Work

  • API keys are space-scoped — a token created for production cannot access jobs in staging
  • Workers poll from a specific space — each worker targets one space's queue
  • WebSocket streams are per-space — subscribe to all events in a space, or drill down to a single job
  • Each space has its own dispatch queue — jobs in one space don't affect processing in another

Naming Patterns

PatternExamplesWhen to use
By environmentproduction, staging, devSame job types across environments
By job typeemails, video-processing, exportsDifferent job types with different workers
By team/customerteam-billing, customer-acmeMulti-tenant or team-based isolation

Choose whatever makes sense for your setup. You can always create more spaces later.

On this page