Skip to content

A service for enabling running jobs on remote compute from the KBase CDM

License

Notifications You must be signed in to change notification settings

kbase/cdm-task-service

Repository files navigation

CDM Task Service

This is currently a prototype

Enables running jobs on remote compute from the KBase CDM cluster.

Nomenclature

  • CDM: Central Data Model
    • The KBase data model
  • CTS: CDM Task Service

Service Requirements

  • Python 3.11+
  • crane
  • An s3 instance for use as a file store, but see "S3 requirements" below

S3 requirements

  • Path style access is required.
  • Any objects provided to the servcie that were created with multipart uploads must use the same part size for all parts except the last.
  • The service does not support objects encrypted with customer supplied keys or with the AWS key management service.
  • The provided credentials must enable listing buckets, as the service performs that operation to check the host and credentials on startup
  • If using Minio, the minimum version is 2024-10-02T17-50-41Z and the server must be run in --compat mode.

Development

Adding code

  • In this alpha / prototype stage, we will be PRing (do not push directly) to main. In the future, once we want to deploy beyond CI, we will add a develop branch.
  • The PR creator merges the PR and deletes branches (after builds / tests / linters complete).

Code requirements for prototype code

  • Any code committed must at least have a test file that imports it and runs a noop test so that the code is shown with no coverage in the coverage statistics. This will make it clear what code needs tests when we move beyond the prototype stage.
  • Each module should have its own test file. Eventually these will be expanded into unit tests (or integration tests in the case of app.py)
  • Any code committed must have regular code and user documentation so that future devs converting the code to production can understand it.
  • Release notes are not strictly necessary while deploying to CI, but a concrete version (e.g. no -dev* or -prototype* suffix) will be required outside of that environment. On a case by case basis, add release notes and bump the prototype version (e.g. 0.1.0-prototype3 -> 0.1.0-prototype4) for changes that should be documented.

Running tests

Copy test.cfg.example to test.cfg and fill it in appropriately.

pipenv sync --dev  # only the first time or when Pipfile.lock changes
pipenv shell
PYTHONPATH=. pytest test

Exit from prototype status

About

A service for enabling running jobs on remote compute from the KBase CDM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages