Skip to content

Refactor/busy pattern#399

Merged
rpanic merged 7 commits intodevelopfrom
refactor/busy-pattern
Jan 22, 2026
Merged

Refactor/busy pattern#399
rpanic merged 7 commits intodevelopfrom
refactor/busy-pattern

Conversation

@4ytuncs
Copy link
Copy Markdown
Contributor

@4ytuncs 4ytuncs commented Jan 22, 2026

Description

Previosuly, in modules like BlockProducerModule and BatchProducerModule, a boolean flag of inProgress was being used to check availability of module or production. It is changed with a decorator to make this checks, which replaces the repeated pattern.

Commits

  • Implemented method decorator @ensureNotBusy for wrapping functions. 3c995cc
  • Implemented it to various places 3c995cc
    • Implemented a short private function for wrapping the block production operation, since only a short section of start function needs that check.
  • Reverted use of @ensureNotBusy for LocalTaskQueue, since it was preventing use of recursion correctly. 602a492

Closes #324

@4ytuncs 4ytuncs marked this pull request as ready for review January 22, 2026 20:47
@4ytuncs 4ytuncs requested a review from rpanic January 22, 2026 20:47
@rpanic rpanic merged commit 3e0c049 into develop Jan 22, 2026
5 checks passed
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.

Add a Busy pattern for block production pipeline checks

2 participants