# How to recalculate SLA metrics counters in tickets?
# Symptoms

The keys, SLA policies, or schedule for a ticket in a status other than *Closed* have been changed. It is necessary to recalculate the SLA counter readings in this ticket(s).

# Solution

Run the command on the server:

```shell
docker exec --env-file .env -it swarmica-django-1 python manage.py recalculate_sla
```

:::caution
**ATTENTION!** The command recalculates all unclosed tickets! It is recommended to run this command during non-working hours as it puts a heavy load on the server.
:::