# Runtime & queues

Open Admin → Settings → Runtime.

## Sessions

Choose file, database, or Redis storage. Changing the session driver may sign out active users. Redis is appropriate for multiple web servers; file sessions are simplest for one server.

## Cache

Choose file, database, or Redis. Use a unique key prefix when sharing a Redis service with another application. JustFlows validates the new store and reverts the setting if it cannot read back a test value.

## Queue

- **Queue service:** database, Redis, or Amazon SQS. Redis is recommended for production.
- **Flow execution mode:** use **Background worker** in production. Inline request mode is intended for local testing and debugging.
- **Worker process:** copy the command displayed on the Queue tab. Its pattern is:

```bash
php artisan queue:work DRIVER --queue=QUEUE --tries=3 --timeout=240
```

Keep the process alive with Supervisor, systemd, Docker, or your platform's worker service. Restart workers after every application deployment so they load the new code.

<Warning>
The queue service only stores jobs. A configured database, Redis, or SQS queue does not execute anything until a worker consumes it.
</Warning>
