How to Docker to test the tasks executed by cron? (how to speed up time)?
There are Python (Flask + Celery, mysql, redis) project.
Exhibited for celery tasks that should run on schedule.
You must verify that after N hours, or at the time of the passage of time (or other problems and situations which may arise) are handled correctly.
Waiting for that day/week/year - certainly not an option.
Change the time in docker is not available.
How to solve this problem? (right or fast)
asked August 19th 19 at 22:48
You want Gssp test? He's in exactly the specified time startanet? Or still want to test tasks on schedule?
Cron, I think testing does not need. But the problem is tests cover. Not to do magic.
Make a trigger for every 5 minutes and check that the job runs, then change sheduling correct.
Google it: celery task monitoring, Flower
Find more questions by tags CeleryCronDockerLinuxPython