You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduce new models for graph execution and added Start_delay (#348)
* Update version to 0.0.2b5 and introduce new models for graph execution
- Incremented the version in _version.py to 0.0.2b5.
- Added new models in models.py for GraphNode, Unites, RetryPolicy, and StoreConfig, enhancing the structure and validation of graph execution parameters.
- Refactored StateManager methods to utilize the new models, improving type safety and clarity in the trigger and upsert_graph functions.
- Updated trigger_graph to include a start_delay parameter for delayed execution, enhancing flexibility in graph triggering.
* Refactor __init__.py to streamline exports and include new models
- Removed TriggerState from exports and added new models: UnitesStrategyEnum, UnitesModel, GraphNodeModel, RetryStrategyEnum, RetryPolicyModel, and StoreConfigModel.
- Updated __all__ to reflect the changes in exported components, enhancing the module's structure and usability.
* Refactor tests to remove TriggerState and utilize GraphNodeModel
- Removed instances of TriggerState from tests, replacing them with a dictionary structure for state representation.
- Updated test assertions to use GraphNodeModel for graph node definitions, enhancing clarity and consistency in the test suite.
- Adjusted related test cases to ensure compatibility with the new state representation, improving overall test robustness.
* Add class method decorators to StoreConfigModel validators
- Updated the `validate_required_keys` and `validate_default_values` methods in `StoreConfigModel` to be class methods, enhancing their functionality and consistency with the model's design.
- Introduced a new test file for comprehensive testing of `GraphNodeModel`, `StoreConfigModel`, and `StateManager`, including validation checks and default behavior, improving test coverage and reliability.
* Remove unused import of asyncio in test_models_and_statemanager_new.py to streamline the test file.
0 commit comments