Hi all,
I have been using apscheduler for 2 years, in a client-server scheduler application (clients connect to a server, the server gives them their jobs to schedule).
I have a problem with a specific job, which consists of executing an external command every minute. I set max_instances=1 and hence the job always waits for the previous instance to finish before executing the new instance.
But sometimes (rarely, given the number of times the command is executed) the command hangs indefinitely.
I wonder if there is a way to tell apscheduler that a given job instance shouldn't be allowed to run for longer than X seconds. Like a max_duration setting.
Also, I would welcome any insight on the use of logging with apscheduler, as I will probably need to add more logging to find out what is going on. Currently, each job uses the python logging module, but the scheduler itself doesn't log anything about what he is doing. I would welcome any feedback from people experienced in this.
Thx,
Guy