Skip to content

Commit

Permalink
Ratelimiting the number of times a workflow is consumed (flyteorg#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ketan Umare authored Jun 10, 2020
1 parent 3bc48b0 commit c47a7c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func (c *Controller) enqueueFlyteWorkflow(obj interface{}) {
}
key := wf.GetK8sWorkflowID()
logger.Infof(ctx, "==> Enqueueing workflow [%v]", key)
c.workQueue.Add(key.String())
c.workQueue.AddRateLimited(key.String())
}

func (c *Controller) enqueueWorkflowForNodeUpdates(wID v1alpha1.WorkflowID) {
Expand Down

0 comments on commit c47a7c4

Please sign in to comment.