Python Forum

Full Version: any cron job equivalent in windows
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am implementing cron job in django to schedule a task.But when i run the command ,
python manage.py crontab add
, I am getting the error "ModuleNotFoundError: No module named 'fcntl'".So i found out that cron job doesnt work on windows.So is there cron job equivalent in windows?Is there any way we can make cron job work in windows.
you can use python sched, see: https://docs.python.org/3/library/sched.html
Or easier to use
(Jun-03-2022, 12:13 PM)saisankalpj Wrote: [ -> ]I am implementing cron job in django to schedule a task
Django APScheduler which is a thin wrapper around APScheduler.
Also for small task so is Schedule(Python job scheduling for humans) easy to use.
Simple way to schedule programs with Python on Windows