Skip to content
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
@kamituel

Description

@kamituel

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:

  1. lein run > out.txt
  2. wait some time until job starts
  3. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions