{"id":25076356,"url":"https://github.com/rvhonorato/orchestrator","last_synced_at":"2025-10-24T11:58:19.280Z","repository":{"id":273886695,"uuid":"887186776","full_name":"rvhonorato/orchestrator","owner":"rvhonorato","description":"Asynchronous job orchestrator to manage payloads by tracking quotas and routing jobs between services and computing resources.","archived":false,"fork":false,"pushed_at":"2025-10-20T12:50:06.000Z","size":97,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-20T13:29:48.135Z","etag":null,"topics":["async","job-scheduler","middleware","queue-system","resource-management","rust","scientific-computing"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rvhonorato.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-12T10:12:11.000Z","updated_at":"2025-10-06T14:42:22.000Z","dependencies_parsed_at":"2025-07-30T14:29:09.190Z","dependency_job_id":"e9b92b6e-e050-45a6-a9a7-5c5e871b0b8a","html_url":"https://github.com/rvhonorato/orchestrator","commit_stats":null,"previous_names":["rvhonorato/orchestrator"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/rvhonorato/orchestrator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvhonorato%2Forchestrator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvhonorato%2Forchestrator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvhonorato%2Forchestrator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvhonorato%2Forchestrator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rvhonorato","download_url":"https://codeload.github.com/rvhonorato/orchestrator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvhonorato%2Forchestrator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280791362,"owners_count":26391692,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-24T02:00:06.418Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["async","job-scheduler","middleware","queue-system","resource-management","rust","scientific-computing"],"created_at":"2025-02-07T01:37:05.739Z","updated_at":"2025-10-24T11:58:19.275Z","avatar_url":"https://github.com/rvhonorato.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# orchestrator\n\n![GitHub License](https://img.shields.io/github/license/rvhonorato/orchestrator)\n![GitHub Release](https://img.shields.io/github/v/release/rvhonorato/orchestrator)\n[![ci](https://github.com/rvhonorato/orchestrator/actions/workflows/ci.yml/badge.svg)](https://github.com/rvhonorato/orchestrator/actions/workflows/ci.yml)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/7f2a8816886645d28cbaac0fead038f9)](https://app.codacy.com/gh/rvhonorato/orchestrator/dashboard?utm_source=gh\u0026utm_medium=referral\u0026utm_content=\u0026utm_campaign=Badge_grade)\n\n## Overview\n\nThis is a central component [WeNMR](https://wenmr.science.uu.nl), a worldwide\ne-Infrastructure for NMR and structural biology - operated by\nthe [BonvinLab](https://bonvinlab.org) at the [Utrecht University](https://uu.nl).\nIt is closely coupled with [`jobd`](https://github.com/rvhonorato/jobd),\nwith more destinations to be added in the future such as:\n\n- [DIRAC Interware](https://dirac.readthedocs.io/en/latest/index.html)\n- Educational cloud services\n- SLURM\n\nThis is an asynchronous job orchestration system written in Rust that\nmanages and distributes computational jobs across research software\napps. Its a reactive middleware layer between the backend and various\ncomputing resources, implementing quota-based load balancing.\n\n```mermaid\nflowchart LR\n    B([User]) --\u003e C[Web App]\n    C[Web App] \u003c--\u003e Y[(Database)]\n    C[Web App] --\u003e X{{Orchestrator}}\n    X --\u003e|jobd| D[[prodigy]]\n    X --\u003e|jobd| E[[disvis]]\n    X --\u003e|jobd| G[[other_service]]\n    E --\u003e|slurml| H[local HPC]\n```\n\n## Example deployment\n\n```bash\n$ docker compose \\\n  -f deployment/docker_compose.yml \\\n  --project-directory .\\\n  up -d\n```\n\n### Create a dummy run script\n\n```bash\n$ cat \u003c\u003cEOF \u003e run.sh\n#!/bin/bash\n# Pretend we are calculating something\nsleep $((RANDOM % 3 + 1))m\n# Done!\necho 'This is a downloadable file.' \u003e output.txt\nEOF\n```\n\n### POST it\n\n```bash\n$ curl -s -X POST http://localhost:5000/upload \\\n  -F \"file=@run.sh\" \\\n  -F \"user_id=1\" \\\n  -F \"service=generic\" | jq\n```\n\nIt will return some information:\n\n```json\n{\n  \"id\": 1,\n  \"user_id\": 1,\n  \"service\": \"generic\",\n  \"status\": \"Queued\",\n  \"loc\": \"/opt/data/978e5a14-dc94-46ab-9507-fe0a94d688b8\",\n  \"dest_id\": \"\"\n}\n```\n\n### CHECK the status\n\n```bash\n$ curl -I http://localhost:5000/download/1\nHTTP/1.1 202 Accepted\ncontent-length: 0\ndate: Mon, 06 Oct 2025 14:10:44 GMT\n```\n\n- `200`, File downloaded successfully\n- `202`, Job not ready,\n- `204`, Job failed or cleaned\n- `404`, Job not found\n- `500`, Internal server error\n\n### GET it\n\n```bash\n$ curl -I http://localhost:5000/download/16\nHTTP/1.1 200 OK\ncontent-type: application/octet-stream\ncontent-length: 380\ndate: Mon, 06 Oct 2025 14:13:16 GMT\n```\n\n```bash\ncurl -o results.zip http://localhost:5000/download/1\n```\n\n### Extra: Submit a large volume to see the queue in action\n\n```bash\nfor i in {1..250}; do\n  cat \u003c\u003cEOF \u003e run.sh\n#!/bin/bash\n# Pretend we are calculating something\nsleep \\$((RANDOM % 36 + 25))\n# Done!\necho 'This is a downloadable file.' \u003e output.txt\nEOF\n  curl -s -X POST http://localhost:5000/upload \\\n    -F \"file=@run.sh\" \\\n    -F \"user_id=1\" \\\n    -F \"service=generic\" \u003e /dev/null\n  echo \"Submitted job $i\"\ndone\n```\n\nSee the logs of the `orchestrator` container:\n\n```bash\n  -f deployment/docker_compose.yml \\\n  --project-directory .\\\n  logs orchestrator --follow\n```\n\nYou will see jobs being picked up and sent to `jobd` gradually,\nfollowing the quota defined in the configuration file via `SERVICE_GENERIC_RUNS_PER_USER`\n\n## Implementation\n\n🚧 soon 🚧\n\n## Docs\n\n🚧 soon 🚧\n\n## Contact\n\nIf you think this project would be useful for your use case or would like to\nsuggest something, please reach out either via issue here or via email. (:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frvhonorato%2Forchestrator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frvhonorato%2Forchestrator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frvhonorato%2Forchestrator/lists"}