Skip to content

Conversation

@jnsebgosselin
Copy link
Member

@jnsebgosselin jnsebgosselin commented Aug 28, 2025

This pull request adds an is_running property to the TaskManagerBase class, providing a clear and reliable way to check whether the task manager is currently processing tasks or has an active worker thread. Additionally, several minor code improvements and refactorings are included for better readability and maintainability.

Changes

  • Add is_running attribute:
    • Implements a property that returns True when tasks are pending, running, or when the worker thread is active.
    • Improves thread state management and makes it easier for client code to monitor task execution status.
  • Minor code refactoring:
    • Adds missing initializations for task dictionaries.
    • Cleans up comments and docstrings for clarity.
    • Enhances code style and consistency.

@jnsebgosselin jnsebgosselin added this to the 0.9.0 milestone Aug 28, 2025
@jnsebgosselin jnsebgosselin self-assigned this Aug 28, 2025
@jnsebgosselin jnsebgosselin added the enhancement New feature or request label Aug 28, 2025
@jnsebgosselin jnsebgosselin merged commit 282656d into main Aug 28, 2025
1 check passed
@jnsebgosselin jnsebgosselin deleted the improve_workers branch August 29, 2025 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants