Skip to content

Removing ScheduledTask Recursion#307

Merged
willmeister merged 3 commits intomasterfrom
fixScheduledTaskDelay
Oct 6, 2020
Merged

Removing ScheduledTask Recursion#307
willmeister merged 3 commits intomasterfrom
fixScheduledTaskDelay

Conversation

@willmeister
Copy link
Copy Markdown

Description

Right now ScheduledTask, on which all microservices are based, does recursive calls when it doesn't need to. This fixes that.

Contributing Agreement

Copy link
Copy Markdown
Contributor

@karlfloersch karlfloersch left a comment

Choose a reason for hiding this comment

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

This looks good! I'm unsure exactly what the removed recursion did, but it does seem on a surface level to be unneeded. Was this for restarting a failed service automatically?

`Error sleeping in ScheduledTask! Continuing execution.`,
e
)
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sorry have been slow to review this but I've been trying to figure out what the change actually does 😅

Where does rerun take place now? Or is it just that this didn't need to be here generally?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

The changed code is within a while(this.running) loop. So just jumping over the sleep makes it re-run immediately. The only material change is not churning through promises and instead continuing to loop within the same function.

@willmeister willmeister merged commit dd9dd31 into master Oct 6, 2020
@willmeister willmeister deleted the fixScheduledTaskDelay branch October 6, 2020 21:18
karlfloersch added a commit that referenced this pull request Oct 7, 2020
tynes pushed a commit that referenced this pull request Oct 7, 2020
snario pushed a commit that referenced this pull request Apr 14, 2021
* Final gas optimizations for CTC

* delete and re-init

* Fix issue with tests failing

* Use encoding/decoding from core-utils

* dev: Use eth-optimism/core-utils where applicable (#281)

* Use core-utils where applicable

* Further reduce utils

* Update ovmCREATEEOA.spec.ts

Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>

* remove unused import

* Revert "remove unused import"

This reverts commit 1df87926e7a3ca8ebdf7448ad5f0395fe7766ff7.

* actually fix imports

* A few more comments

* address PR feedback - add comments, renaming vars

* Optimization: Conditional Monotonicity Checking (#307)

* trying it

* cleanup

* remove duplicate comment

* fix docstring

* fix var name

* missing period

Co-authored-by: Ben Jones <ben@pseudonym.party>
Co-authored-by: Maurelian <maurelian@protonmail.ch>
Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Kevin Ho <kevinjho1996@gmail.com>
agusduha pushed a commit that referenced this pull request Mar 20, 2025
* fix: merge issues

* fix: natspec

* fix: test

* fix: nit
theochap pushed a commit that referenced this pull request Dec 10, 2025
* chore(docs): label cleanup

* fixes

* fix: left-align kona derive badges
theochap pushed a commit that referenced this pull request Jan 15, 2026
### Description

Small PR cleaning up the test utilities in `op-alloy-registry`
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.

2 participants