# New task assignment is not working
# Symptoms

New task assignment has stopped working, all notifications to email have stopped coming

In the logs

```
docker logs -f swarmica-celeryworker-1

[2024-04-03 13:53:05,095: ERROR/MainProcess] consumer: Cannot connect to redis://redis:6379/0: Error -3 connecting to redis:6379. Lookup timed out..
Trying again in 32.00 seconds... (16/100)


[2024-04-03 13:53:57,556: ERROR/MainProcess] consumer: Cannot connect to redis://redis:6379/0: Error -3 connecting to redis:6379. Lookup timed out..
Trying again in 32.00 seconds... (16/100)
```

# Solution

Limit the maximum number of connections to Postgres to 200:

```txt
# grep postgres docker-compose.yml
..
    command: postgres -N 200 -c work_mem=8MB -c temp_buffers=16MB -c shared_buffers=4GB -c track_activity_query_size=16384
```