Skip to main content

deploy deploy codecov

Chowda

CLAMS processing app

App

Application available at chowda.wgbh-mla.org

Documentation

Visit the documentation for install and usage instructions.

Basic Pipeline with 2 CLAMS Apps

Actors:

  • User
  • Chowda
    • Webapp
    • Pulbicly available on internet
  • DB
    • Postgresql
    • VPC
    • Sperate Cluster?
  • Runner
    • Pipeline Runner
    • In CLAMS cluster
  • CLAMS
    • Individual CLAMS apps
    • In CLAMS cluster
    • Deployed as either:
      • Webservice
      • Kubernetes Job

Call Sequence Diagram

  • User starts job
  • Chowda enters it in the DB
  • Runner sees new job and starts CLAM1 with initial MMIF
  • CLAM1 Processes data and returns MMIF to Runner
  • Runner Updates DB and starts CLAM2
  • CLAM2 Processes data and returns MMIF to Runner
  • Runner Updates DB
  • User gets data from Chowda
sequenceDiagram
    actor User
    participant Chowda
    participant DB
    participant Runner
    participant CLAM1
    participant CLAM2


    %% User starts job
    activate User
    note left of User: Hey, Chowda! Start batch 123 on pipeline 456
    User ->> + Chowda: Start batch 123 with files [] through pipeline 456
    Chowda ->> + DB: INSERT (batch, pipeline, Initial mmif) to TABLE pipeline_runs
    DB ->> - Chowda: {pipeline_run_id, status: waiting}
    Chowda ->> - User: Pipeline run {id} is {status}
    deactivate User
    loop backgroud process
        Runner ->> DB: Check for new jobs
    end

    %% Runner
    activate Runner
    note left of Runner: Found new job!
    Runner ->> + CLAM1: Start app 1, with initial MMIF
    deactivate Runner

    %% CLAM1
    note right of CLAM1: Processing!
    loop Status check
        Runner ->> CLAM1: Status report!
        CLAM1 ->> Runner: XX %
        Runner ->> DB: UPDATE pipeline_run_id SET status CLAM1 XX %
    end
    note right of CLAM1: Done!
    CLAM1 ->> - Runner: intermediate MMIF
    activate Runner
    Runner ->> DB: UPDATE pipeline_run_id SET status 'done' + MMIF

    %% CLAM 2
    Runner ->> + CLAM2: Start app 2 with intermediate MMIF
    deactivate Runner
    note right of CLAM2: Processing!
    loop Status check
        Runner ->> CLAM2: Status report!
        CLAM2 ->> Runner: XX %
        Runner ->> DB: UPDATE pipeline_run_id SET status CLAM2 XX %
    end

    %% User update
    activate User
    note left of User: Is it done yet?
    User ->> + Chowda: Pipeline update?
    Chowda ->> + DB: WATCH pipeline_runs WHERE status=running
    DB ->> Chowda: ACTIVE_PIPELINE_RUNS
    Chowda -->> User: Websocket: Batch 123 status [CLAM1: done, CLAM2: XX %]
    note left of User: Not quite, but it should be done soon.

    %% CLAMS finished
    note right of CLAM2: Done!
    CLAM2 -->> - Runner: finished MMIF
    activate Runner
    Runner ->> - DB: UPDATE pipeline_run_id SET status MMIF
    DB ->> Chowda: Batch 123 update
    Chowda -->> User: WS: batch 123 Finished!
    deactivate Chowda
    deactivate DB

    note left of User: Yay! My metadata is perfect!
    deactivate User

develop

pre-commit secret scanning

  1. Install ggshield
pip install ggshield
# or
brew install gitguardian/tap/ggshield
  1. Login to gitguardian
ggshield auth login
  1. Install the pre-commit hooks
pre-commit install

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chowda-0.7.0.tar.gz (24.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chowda-0.7.0-py3-none-any.whl (30.5 kB view details)

Uploaded Python 3

File details

Details for the file chowda-0.7.0.tar.gz.

File metadata

  • Download URL: chowda-0.7.0.tar.gz
  • Upload date:
  • Size: 24.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for chowda-0.7.0.tar.gz
Algorithm Hash digest
SHA256 fef3bb732b5718cea2ce5dd218781049439c7262a7113cc4c49a828647a85419
MD5 d2808a0bf2c89183a29c186eef72aa6f
BLAKE2b-256 8edc7bc66d3a9acb2a83bb430463e08111ab6209ffa1de5f64a66980a18dbf87

See more details on using hashes here.

Provenance

The following attestation bundles were made for chowda-0.7.0.tar.gz:

Publisher: publish.yml on WGBH-MLA/chowda

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chowda-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: chowda-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 30.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for chowda-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e0caaa17c91bbd1ffa857151699784c694774fa08371df03dcd98ba6d0fdc0df
MD5 24f158577112868e107a37f4d1e9de70
BLAKE2b-256 cdda2df056670ece94d98b09d6db18b51d8352ccabe4ec213462e9140a7d6aa8

See more details on using hashes here.

Provenance

The following attestation bundles were made for chowda-0.7.0-py3-none-any.whl:

Publisher: publish.yml on WGBH-MLA/chowda

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 files

0.6.0

2 files

0.4.0

2 files

0.3.0

2 files

0.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page