Dev#81
Merged
Merged
Conversation
- Created a new CONTRIBUTING.md file to provide instructions for setting up the development environment, running tests, and adhering to code style. - Included prerequisites, recommended environment variables, and commands for installing dependencies and running tests. - Outlined expectations for test-driven development and usage of pre-commit hooks.
Document purpose, features, installation, dependencies, and a basic WSWorker instantiation example.
- Introduced an `autostart` boolean field in the WorkerJson TypedDict to manage worker startup behavior. - Updated the Worker class to initialize `autostart` to False if not provided in the configuration. - Enhanced tests to verify the default behavior of the `autostart` field when missing from the configuration.
- Introduced `get_config` method to retrieve the current worker configuration. - Added `update_worker_config` method to allow updating of worker properties such as name, autostart, and update_on_startup. - Enhanced tests to validate the functionality of the new configuration methods, ensuring correct updates and retrieval of worker settings.
- Introduced `AutostartPolicy` type and `normalize_autostart_policy` function to manage autostart behavior. - Updated `WorkerJson` to use `AutostartPolicy` instead of a boolean for the `autostart` field. - Modified worker initialization and configuration methods to support new autostart policies. - Updated tests to reflect changes in autostart handling, ensuring correct defaults and migration from boolean values.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.