You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.
The output file (out.txt) should have literally thousands of print statements coming from the poll!, and a few coming from completed? that prove it was indeed returning true.
The input plugin is in the onyx-too-many-poll-invocations.jobs.basic namespace.
Reproduced on 0.12.6 and 0.13.0.
Discussed on Gitter on May 17th '18.
The text was updated successfully, but these errors were encountered:
This is fine as long as the plugin knows enough about the source to not do anything on each poll! until the job is determined to be completed. That said, this is a bug, and the task lifecycle should know enough to not poll! an input source if it is completed. I'll get this sorted soon.
lbradstreet
changed the title
Input plugin's poll! is being invoked infinitely
Input plugin's poll! continues to be invoked after completed?
May 28, 2018
I note that the job eventually completes (albeit after poll! is called a bunch).
I have a proposed fix in #867 which will check whether the plugin returns completed? before poll!'ing for a whole batch. I'm not sure whether the fix is worthwhile as it will come with a performance hit if the plugin's completed? function is expensive.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When
completed?
of an input task returnstrue
, it doesn't preventpoll!
from being invoked over and over again (quite possibly infinitely).Here is a repo with a reproduced minimal setup showing this issue: https://github.com/kamituel/onyx-poll-issue.
Steps to reproduce using this repo:
lein run > out.txt
ctr + c
The output file (
out.txt
) should have literally thousands of print statements coming from thepoll!
, and a few coming fromcompleted?
that prove it was indeed returning true.The input plugin is in the
onyx-too-many-poll-invocations.jobs.basic
namespace.Reproduced on
0.12.6
and0.13.0
.Discussed on Gitter on May 17th '18.
The text was updated successfully, but these errors were encountered: