• PengGao's avatar
    Improve error logging in distributed inference worker and reset curre… (#296) · a13abb80
    PengGao authored
    …nt task after broadcasting. Handle exceptions when clearing task event.
    
    ## Contributing Guidelines
    
    We have prepared a `pre-commit` hook to enforce consistent code
    formatting across the project. If your code complies with the standards,
    you should not see any errors, you can clean up your code following the
    steps below:
    
    1. Install the required dependencies:
    
    ```shell
        pip install ruff pre-commit
    ```
    
    2. Then, run the following command before commit:
    
    ```shell
        pre-commit run --all-files
    ```
    
    3. Finally, please double-check your code to ensure it complies with the
    following additional specifications as much as possible:
    - Avoid hard-coding local paths: Make sure your submissions do not
    include hard-coded local paths, as these paths are specific to
    individual development environments and can cause compatibility issues.
    Use relative paths or configuration files instead.
    - Clear error handling: Implement clear error-handling mechanisms in
    your code so that error messages can accurately indicate the location of
    the problem, possible causes, and suggested solutions, facilitating
    quick debugging.
    - Detailed comments and documentation: Add comments to complex code
    sections and provide comprehensive documentation to explain the
    functionality of the code, input-output requirements, and potential
    error scenarios.
    
    Thank you for your contributions!
    a13abb80
service.py 21.8 KB