I have problem when i am using apscheduler in my flask application.
In my view.py file i am writing like this
import time
from apscheduler.scheduler import Scheduler
def test_scheduler():
print "TEST"
print time.time()
sched = Scheduler()
sched.add_interval_job(test_scheduler, seconds=5)
sched.start()
And then this method test_scheduler() executes twice in every five second
TEST 1360844314.01 TEST 1360844314.2