Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheduler fail #208

Open
kr2 opened this issue Apr 25, 2017 · 0 comments
Open

Scheduler fail #208

kr2 opened this issue Apr 25, 2017 · 0 comments

Comments

@kr2
Copy link

kr2 commented Apr 25, 2017

I didn't look into this issue to much, because using threading directly works and bypasses this problem. So this means I am not 100% certain of the following.

It seems that the scheduler expects the tasks do be finite. So if there are some task like the following, then scheduler fails to execute some of them. The problem there is that it does so without error message.

self._sh.scheduler.add('test_1', self._worker, prio=3, cron='init', cycle=None, value=None, offset=None, next=None)
self._sh.scheduler.add('test_2', self._worker, prio=3, cron='init', cycle=None, value=None, offset=None, next=None)
...
def _worker(self):
    while self.alive:
        pass

The scheduler also seems to miss task if the cycle time is to short.

self._sh.scheduler.add('test_1', self._worker, prio=3, cron=None, cycle=1, value=None, offset=None, next=None)
self._sh.scheduler.add('test_2', self._worker, prio=3, cron=None, cycle=1, value=None, offset=None, next=None)
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant