Optimizing Task Scheduling and Concurrent Operations Through Redis & Postgres in Python Backend