Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
435 views
in Technique[技术] by (71.8m points)

My Python Loop on Heroku Advanced Scheduler Keeps Getting a Task Timed Out

I made a program that loops every 10 seconds for 10 minutes.

now = datetime.datetime.now()
now_plus_10 = now + datetime.timedelta(minutes = 10)

while now <= now_plus_10:
  time.sleep(10) #every 10 seconds it sleeps
  now = datetime.datetime.now() #update time to match
  reply_a_person(api)

BUT IT KEEPS GIVING ME A "Task Timed Out" No matter HOW much I configure the trigger timeout settings

HELP??? It's for my Twitter Bot X(


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...