Add job processing system with streaming endpoint

Introduced a `processing` router to handle job streaming using server-sent events. Added `Jobs` and `JobStatus` models for managing job-related data, along with database creation logic. Updated the `sample` router to create new job entries during experiment creation.
This commit is contained in:
GotthardG 2025-04-10 22:00:23 +02:00
parent a05b2efd26
commit 00f694951a
2 changed files with 18 additions and 8 deletions

View File

@ -1,10 +1,10 @@
{ {
"ssl_cert_path": "ssl/mx-aare-test.psi.ch.pem", "ssl_cert_path": "/app/backend/ssl/mx-aare-test.psi.ch.pem",
"ssl_key_path": "ssl/mx-aare-test.psi.ch.key", "ssl_key_path": "/app/backend/ssl/mx-aare-test.psi.ch.key",
"OPENAPI_URL": "https://mx-aare-test.psi.ch:8000/openapi.json", "OPENAPI_URL": "https://backend:8000/openapi.json",
"SCHEMA_PATH": "./src/openapi.json", "SCHEMA_PATH": "/app/src/openapi.json",
"OUTPUT_DIRECTORY": "./openapi", "OUTPUT_DIRECTORY": "/app/openapi",
"PORT": 8081, "PORT": 8000,
"SSL_KEY_PATH": "/home/jungfrau/aaredb/backend/ssl/mx-aare-test.psi.ch.key", "SSL_KEY_PATH": "/app/backend/ssl/mx-aare-test.psi.ch.key",
"SSL_CERT_PATH": "/home/jungfrau/aaredb/backend/ssl/mx-aare-test.psi.ch.pem" "SSL_CERT_PATH": "/app/backend/ssl/mx-aare-test.psi.ch.pem"
} }

10
config_test.json Normal file
View File

@ -0,0 +1,10 @@
{
"ssl_cert_path": "/app/backend/ssl/mx-aare-test.psi.ch.pem",
"ssl_key_path": "/app/backend/ssl/mx-aare-test.psi.ch.key",
"OPENAPI_URL": "https://backend:8000/openapi.json",
"SCHEMA_PATH": "/app/src/openapi.json",
"OUTPUT_DIRECTORY": "/app/openapi",
"PORT": 8000,
"SSL_KEY_PATH": "/app/backend/ssl/mx-aare-test.psi.ch.key",
"SSL_CERT_PATH": "/app/backend/ssl/mx-aare-test.psi.ch.pem"
}