Skip to content

Conversation

@yhteoh
Copy link
Collaborator

@yhteoh yhteoh commented Sep 22, 2025

  • Please check if the PR fulfills these requirements
  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    refactor

  • What is the current behavior? (You can also link to an open issue here)

    • Backend infrastructure not dynamic
    • Task, TaskArgs, TaskResults all have to be specified in oqd-core
    • TaskResults is a pydantic datamodel
  • What is the new behavior (if this is a feature change)?

    • Remove Task wrapper object (not necessary)
    • Remove TaskArgs, TaskResult, these are now handled internally in the backend definition.
    • Added BackendRegistry this enables dynamic definition of Backends that are then automatically added to the BackendRegistry.
  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
    All old code defining Backend requires updating to the new structure.

  • Other information:

@yhteoh yhteoh mentioned this pull request Sep 22, 2025
7 tasks
@yhteoh yhteoh self-assigned this Sep 22, 2025
@yhteoh yhteoh added the refactor Code has been refactored label Sep 22, 2025
@yhteoh yhteoh marked this pull request as ready for review September 22, 2025 17:52
@yhteoh yhteoh merged commit d7506cb into v0.2dev Sep 22, 2025
3 checks passed
@yhteoh yhteoh deleted the refactor_backend branch September 22, 2025 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Code has been refactored

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants