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 14:16:44 +02:00
parent e5844a5fb5
commit 00b8df1111

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# Extract values from pyproject.toml # Extract values from pyproject.toml
PYPROJECT_FILE="$(dirname "$0")/backend/pyproject.toml" PYPROJECT_FILE="/app/backend/pyproject.toml"
NAME=$(awk -F'= ' '/^name/ { print $2 }' "$PYPROJECT_FILE" | tr -d '"') NAME=$(awk -F'= ' '/^name/ { print $2 }' "$PYPROJECT_FILE" | tr -d '"')
VERSION=$(awk -F'= ' '/^version/ { print $2 }' "$PYPROJECT_FILE" | tr -d '"') VERSION=$(awk -F'= ' '/^version/ { print $2 }' "$PYPROJECT_FILE" | tr -d '"')