Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task registry refactor #332

Merged
merged 37 commits into from
Jul 18, 2024
Merged

Conversation

Carsonthemonkey
Copy link
Collaborator

Overview

Refactor the task registry to automatically collect tasks. This ensures there is a single source of truth for string references to tasks.

Ticket

Pivotal Ticket

Contributions

  • Adds TaskRegistry class
  • Dynamically collect non-abstract subclasses of Task
  • Refactor BaseCalibrationTask to be abstract
  • Refactor task name property to work on base type
  • Remove TaskType

Test

  • Refactor existing task tests to use and test the registry

Documentation

  • Inline comments have been added to module __init__ .py files

Changelog

Changelog updated.

Carsonthemonkey and others added 30 commits June 13, 2024 13:36
This makes it compatible with the new `BaseCalibrationTask` as it will be able to collect grandchild classes of `Task` (which is all calibration tasks now)
This allows the TaskRegistry to properly filter it out, and will throw errors if instantiation is attempted
This makes all tasks available to the task registry when it is initialized
TaskType now no longer exists
@Carsonthemonkey
Copy link
Collaborator Author

Not sure if this should merge to rc4 directly. There are a few files that we only want on the orchestrator branch for now.

@Carsonthemonkey Carsonthemonkey requested a review from tab-cmd July 12, 2024 23:33
@tab-cmd tab-cmd changed the base branch from 2.0.0rc4 to session-orchestrator July 15, 2024 16:21
@lawhead
Copy link
Collaborator

lawhead commented Jul 16, 2024

There seem to be a number of previous PRs rolled up into this one that is unrelated to a Task Registry refactor. Did something go wrong with a merge or rebase? Seems like this should be cleaned up so we know what specific changes are introduced here.

@Carsonthemonkey Carsonthemonkey merged commit 0da74ab into session-orchestrator Jul 18, 2024
6 checks passed
@tab-cmd tab-cmd deleted the task_registry_refactor branch November 4, 2024 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants