Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Mark items from workqueue as Done() #139

Closed
wants to merge 3 commits into from
Closed

Conversation

EngHabu
Copy link
Contributor

@EngHabu EngHabu commented Nov 9, 2020

TL;DR

Item processor queue used to process catalog items and outputs coalescing for arrays has a bug where it doesn't mark items as done when it finishes processing. This leads to the items being processed again and again wasting resources, clogging the queue and flooding external services with unnecessary requests.

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Tracking Issue

flyteorg/flyte#587


// Mark the item as done processing. The logic below will determine whether it should go back into the queue
// (behind everything else) or whether it requires no further processing.
q.queue.Done(item)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uh ho! This will case a lot of chaos?

@kumare3
Copy link
Contributor

kumare3 commented Nov 9, 2020

Lets get some unit tests going for this.

@EngHabu EngHabu closed this Mar 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants