generated from ApeWorX/project-template
-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: add data acquisition to recorders (#64)
* refactor!: add data acquisition models to recorder * refactor: reformat metrics a bit * refactor: change how state annotations work a bit * refactor!: remove SQLRecorder, replace with JSONLineRecorder * refactor: migrate CircuitBreaker exception to subclass of Halt * refactor!: migrate recorder config to CLI callback also refactor result handling * refactor!: clean up startup process significantly * fix: don't use py 3.10 unions yet * fix: missing Annotated from py 3.8 * refactor: fix rebase misses * refactor: use a more recent block number * fix: do not check `len(ContractEvent)` for performance reasons * fix: display event signatures as strings * fix: ensure that task name ends up in labels * fix: feedback from peer review * refactor: shorten name of startup/shutdown tags * fix: wrong label selected to pull block number * refactor: ensure all tasks have task name (not just silverback) * feat: store startup and shutdown result via recorder * refactor!: move `.identifier` from runner to app * refactor!: remove WorkerState, suggest using TaskiqState * refactor!: move application state from Recorder to new state datastore * fix: revert back to .pop bug fix * fix: move extra quotes for event signatures to middleware * refactor: rename variable for clarity * fix: unused import * fix: was using app.state on shutdown
- Loading branch information
Showing
12 changed files
with
480 additions
and
479 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,6 +119,7 @@ version.py | |
|
||
# Ape stuff | ||
.build/ | ||
.silverback-sessions/ | ||
|
||
**/.DS_Store | ||
*.swp | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
from .application import SilverbackApp | ||
from .exceptions import CircuitBreaker, SilverbackException | ||
from .types import SilverbackStartupState | ||
from .state import AppState | ||
|
||
__all__ = [ | ||
"AppState", | ||
"CircuitBreaker", | ||
"SilverbackApp", | ||
"SilverbackException", | ||
"SilverbackStartupState", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.