We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Background worker

mannsingh3
mannsingh3 asked
on
Medium Priority
376 Views
Last Modified: 2012-05-11
I have a background worker in my code, what I am trying to do is check at a scheduled time if the background worker is dead restart it
Comment
Watch Question

Mike TomlinsonHigh School Computer Science, Computer Applications, Digital Design, and Mathematics Teacher
CERTIFIED EXPERT
Top Expert 2009

Commented:
Why would your background worker be "dead"?...what are you doing in it?

Commented:
Do you have the code that runs at scheduled time? If you have that all you need is to check IsBusy flag on the bg worker.

If you need to restart the worker under specific conditions (e.g. stopped prematurely or threw exception), then you will need a lot more work.

Author

Commented:
can you shed some light what extra needs to be done if background worker needs to be started if stopped prematurely or threw an exception.
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.