Skip to content

op-node: Switch batch queue to be pull based#3597

Merged
mslipper merged 2 commits intojg/channel_in_readerfrom
jg/batchqueue
Sep 28, 2022
Merged

op-node: Switch batch queue to be pull based#3597
mslipper merged 2 commits intojg/channel_in_readerfrom
jg/batchqueue

Conversation

@trianglesphere
Copy link
Contributor

Description

The attributes queue actually had pretty few modifications to work with the progress API. The logic of switching the batch queue over was a bit more complex because the batch queue is very stateful, but still not the worst.

Metadata

  • Fixes ENG-2750

@changeset-bot
Copy link

changeset-bot bot commented Sep 28, 2022

⚠️ No Changeset found

Latest commit: 102a9c2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@mergify
Copy link
Contributor

mergify bot commented Sep 28, 2022

This PR changes implementation code, but doesn't include a changeset. Did you forget to add one?

@trianglesphere trianglesphere marked this pull request as ready for review September 28, 2022 21:26
The attributes queue actually had pretty few modifications to work
with the progress API. The logic of switching the batch queue over
was a bit more complex because the batch queue is very stateful, but
still not the worst.
Comment on lines +78 to +80
// This is to handle the special case of startup. At startup we call Reset & include
// the L1 origin. That is the only time where immediately after `Reset` is called
// originBehind is false.
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice comment

The progress API is very nearly removed from the engine queue stage.
@mslipper mslipper merged commit 32f09d1 into jg/channel_in_reader Sep 28, 2022
@mslipper mslipper deleted the jg/batchqueue branch September 28, 2022 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants