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.

can we shutdown a scheduler with a wait time?

See original GitHub issue

I hope we can call the shutdown method like this:

# wait 3s to shutdown the job. Replace wait=False with wait=3s.
scheduler.shutdown(wait=3)

Because sometime the jobs can hanged because of bad networking. I wan’t to wait the jobs done, but sometime it can be hanging for a day.

Is there any way to do it? If not, how about add the feature in the next version?

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:1
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
benbendemocommented, Sep 7, 2019

@agronholm Could you help to answer this question.

0reactions
agronholmcommented, Sep 8, 2019

I have things to do right now but I will get back to this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

3 Minute delay in schedule shutdown - Microsoft Q&A
Hi,. When scheduling a shutdown you can use the shutdown command, so to schedule a 3 minute delay shutdown would be: shutdown -s...
Read more >
How to schedule a Windows 10 shutdown for a specific date ...
There are several choices shown. You could run this shutdown process every day, once a week or perhaps once a month. You can...
Read more >
How to schedule a shutdown in Windows 10 - OnMSFT.com
When you want to schedule a shutdown on Windows 10, you can shutdown on a timer lets you step away from your device...
Read more >
Proper shutdown of a ScheduledExecutorService
ScheduledExecutorService is a Java interface that implements ExecutorService and allows for scheduling of periodic jobs by providing two ...
Read more >
4 Ways to Automatically Shut Down Your Computer ... - wikiHow
1. Open the Task Scheduler app. If you want your scheduled shutdown to occur more than once, you'll want to use Task Scheduler....
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