question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Scheduling is not working in django app on Windows

See original GitHub issue

I wrote a test like

def test1():
    print("TEST1 TEST1")

print("Executed **************************************)
schedule.every(1).minutes.do(test1)

I see the print of “Executed ******”, but test1 method is never called

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
dbadercommented, Sep 21, 2017

Hey there, it looks like this code is missing a call to schedule.run_pending(). You can find working examples in the docs at https://schedule.readthedocs.io/en/stable/

0reactions
SijmenHuizengacommented, Dec 15, 2020

I’m closing this issue because of inactivity.

We can always revisit this subject though! 😃 If you need any help, please create a new issue. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Run tasks every day at 8am in Django on Windows
Try django-windowsauth and the createtask command. You can use it to create Windows Task Scheduler ...
Read more >
Scheduling Jobs in Python Django in Windows based ...
Scheduling Jobs in Python Django in Windows based environment · Create a new folder in the root directory 'updateservice' with '__init__.py' file
Read more >
Schedule Django commands with Windows task ... - YouTube
This video tells/shows you how to add your custom Django commands to the windows task scheduler so it runs automatically at a certain...
Read more >
Task Scheduler not running the Python script? Try ... - YouTube
Snap! Task Scheduler not running the Python script?Don't worry too much, just watch this video to see how you can fix it.
Read more >
Scheduling task with django
I have a Django app hosted on a windows server and wanted to schedule jobs easily while still having access to existing code...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found