From 401f1e889a9f62a094ef7ae6e98f4d486df17c56 Mon Sep 17 00:00:00 2001 From: GotthardG <51994228+GotthardG@users.noreply.github.com> Date: Thu, 10 Apr 2025 19:00:25 +0200 Subject: [PATCH] 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. --- .gitlab-ci.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 26ba8dc..5ad34ad 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -60,10 +60,12 @@ release: TWINE_USERNAME: gitlab-ci-token TWINE_PASSWORD: $CI_JOB_TOKEN ENVIRONMENT: test - before_script: - - sudo chown -R gitlab-runner:gitlab-runner "$CI_PROJECT_DIR" || true - - sudo find "$CI_PROJECT_DIR" -type f -exec chmod 644 {} + || true - - sudo find "$CI_PROJECT_DIR" -type d -exec chmod 755 {} + || true + before_script: # common setup for every job + - python3.12 -m venv $VIRTUAL_ENV + - source $VIRTUAL_ENV/bin/activate + - pip install --upgrade pip + - find "$CI_PROJECT_DIR" -name '__pycache__' -type d -exec rm -rf {} + || true + - find "$CI_PROJECT_DIR" -name '*.pyc' -type f -delete || true script: # build and run commands within docker container context - docker compose build backend