Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
any cron job equivalent in windows
#1
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.
Reply
#2
you can use python sched, see: https://docs.python.org/3/library/sched.html
Reply
#3
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
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020