Yes, you can follow the steps below:
- Access the Redis queue container (replace the container name accordingly):
docker exec -it erp-redis-queue sh
- Inside the container, open the Redis console:
redis-cli
- Run the following command to clear all queues:
FLUSHALL
- Exit the Redis CLI and container.
Next:
- Access your backend container (replace the container name):
docker exec -it erp-backend-1 bash
- Disable the scheduler for your site:
bench --site SITENAME scheduler disable
- Then re-enable it:
bench --site SITENAME scheduler enable
Finally, restart the server.
Note: This will clear all old queued tasks that are still pending in your Redis queue.