Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(worker): add SILVERBACK_FORK_MODE handler execution context #157

Merged
merged 6 commits into from
Nov 24, 2024

Conversation

fubuloubu
Copy link
Member

@fubuloubu fubuloubu commented Oct 26, 2024

What I did

This PR adds a settings mode to silverback to trigger every single registered handler (through the default registration interface) using a fork context (e.g. with ape.networks.fork(): ...). This potentially unblocks the BacktestRunner and silverback test by allowing all tests to execute within a fork context off of historical state

How I did it

depends: ApeWorX/ape#2349

How to verify it

Checklist

  • Passes all linting checks (pre-commit and CI jobs)
    - [ ] New test cases have been added and are passing
  • Documentation has been updated
  • PR title follows Conventional Commit standard (will be automatically included in the changelog)

johnson2427
johnson2427 previously approved these changes Oct 28, 2024
@fubuloubu
Copy link
Member Author

Going to give it a shot with ApeWorX/ape#2349 after removing the Lock

@johnson2427 johnson2427 enabled auto-merge (squash) November 23, 2024 00:30
@johnson2427 johnson2427 merged commit e949e04 into main Nov 24, 2024
22 checks passed
@johnson2427 johnson2427 deleted the feat/fork-mode branch November 24, 2024 00:41
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