-
Notifications
You must be signed in to change notification settings - Fork 22
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
Issue984 refactor to implement scheduled polls (second pull replaces first.) #985
Conversation
i'll test on dev |
I do think this "It doesn't do a poll on startup, currently. it waits for one interval before the first poll. easy to fix... should we?" should be fixed. If something is wrong, a tail of the logs after starting the config should show poll errors. If it doesn't poll right away you might not see possible errors. |
Also:
|
It never does the poll:
from show:
It also seems odd that housekeeping doesn't appear to run. I was testing 735ff80. I'll try again with the latest commit on the branch. With the latest branch, I see:
|
just double checking... I edited the top post to change branches... are you testing with: https://github.com/MetPX/sarracenia/tree/issue984 |
yes, issue984 |
With the latest commit, it is polling, posting and both nodes are acking reasonably quickly. So it's looking good! But I still don't see housekeeping running. |
…ace holder this should work
I pushed a force of running housekeeping... try that. I will keep looking at flow/Flow/run() to see if it can be simplified. |
should we have a default scheduled_interval? If sleep and scheduled_interval are both not set in the config, sleep defaults to |
I think I'd like to merge this one as-is, as all the patches in here break the tests, so it's best to do a single squash-commit. Here is a branch with follow up work https://github.com/MetPX/sarracenia/tree/issue984_flow_run_refactor After this gets merged, will work on a PR for that (based on the updated development, likely build by cherrypicking.) |
withdrawing this one in favour of: #991 |
Makes subsctantial progree on #974 but does not close it entirely.
resubmission of #984
(the original PR was clutterred up with rebasing... want to do a squash commit so won't rebase for this PR.)
So this implements the refactoring for #974 .
It worries me, in that I'm not sure what side effects the change will have. @reidsunderland do you have an easy way to test if the queueing thing is fixed by the branch? The branch is: https://github.com/MetPX/sarracenia/tree/issue984
The testing in the flow tests is pretty limited, just a straight vanilla SFTP with a short sleep, a VIP and failover.
Things I am wondering about:
It doesn't do a poll on startup, currently. it waits for one interval before the first poll. easy to fix... should we?
So now in poll, the loop towards the end of the run() routine is only used to sleep for 1 second at a time... and the real waiting is done in the scheduled.poll plugin instead.
In watch... still using long sleeps in that loop at the end... Is this an opportunity to simplify sr_watch also... so it also uses the same methods? Is there an advantage to doing it that way?
I'm wondering if there is a way to have watch use a shared duplicate suppression cache the same way as poll does, populating itself with the output exchange binding queue. Same benefit as poll, run on two machines with a vip and failover.
wondering if this change might be an opportunity to simplify sarracenia.flow/init.py run() routine. It feels too complicated.