Skip to content

feat: database models for compute backends (SBP-721) - #217

Merged
marius-mather merged 38 commits into
devfrom
feat/compute-backend-models
Nov 11, 2026
Merged

marius-mather merged 38 commits into
devfrom
feat/compute-backend-models

Conversation

@marius-mather

@marius-mather marius-mather commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Pull Request

Summary

SBP-721: add database models to represent different compute backends, as described in https://docs.google.com/document/d/1Ss9zBZ09tocQ5yRjQfrKdjlizX9QxVgex2kgu9bq20E/edit?usp=sharing

NOTE: this PR does not integrate the new database models with job launch behaviour (beyond setting Gadi as the default backend for now). Integration will happen in subsequent PRs

Changes

  • Implement ComputeBackend, BackendWorkflowSettings and WorkflowRepoStatus models
  • Migrations (including creating a default entry for Gadi)
  • ComputeBackendSettings settings model, to load settings for different backends based on prefix
  • Unit tests

How to Test

Run uv run pytest

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have added or updated documentation where necessary
  • I have run linting and unit tests locally
  • The code follows the project's style guidelines

@minh-biocommons minh-biocommons left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks good to me, thanks for added flexibility

@marius-mather
marius-mather merged commit c7ac291 into dev Nov 11, 2026
3 checks passed
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.

2 participants