This repository was archived by the owner on Jan 6, 2023. It is now read-only.
This repository was archived by the owner on Jan 6, 2023. It is now read-only.
Input plugin's poll! continues to be invoked after completed? #865
Open
Description
When completed?
of an input task returns true
, it doesn't prevent poll!
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
- wait some time until job starts
- kill it with
ctr + c
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.
Metadata
Metadata
Assignees
Labels
No labels