Skip to content

Commit

Permalink
Dequeue minimum commitment logs for all upkeeps as a priority (#13653)
Browse files Browse the repository at this point in the history
* Track how many logs we dequeue for each block window

* When the minimum dequeue commitment has been met for all blocks, perform best effort

* WIP tests

* Add iteration step

* Clean up reorg blocks, lock whole enqueue process

* Add tests

* Refactor the dequeue loop into two functions

* Update the log limit of arbitrum to 2, update tests

* Go imports

* Lint

* Add changeset

* Clean up upkeep selector, drop iteration logic

* Clean up unused log limit low

* Update changeset

* Clean up default selector

* Set lookback blocks to 128

* Add comments

* Update comments

* Update tests

* Clean up dequeued counts

* Update logs

* More accurate logs

* Tidy up logging

* - Add log limit to buffer opts
- Use a default log limit of 1
- Simplify dequeue interface

* Clean up based on start window

* Dequeue the smallest of either capacity or remaining log limit

* Evict reorgd blocks outside of blockStatistics
  • Loading branch information
ferglor authored Jul 5, 2024
1 parent f0ab15f commit b1c9315
Show file tree
Hide file tree
Showing 7 changed files with 630 additions and 350 deletions.
5 changes: 5 additions & 0 deletions .changeset/fluffy-ghosts-sneeze.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

Dequeue minimum guaranteed upkeeps as a priority #changed
Loading

0 comments on commit b1c9315

Please sign in to comment.