Skip to content

fix(medcat-trainer): Fix opentelemetry tracing running with wsgi command#366

Merged
alhendrickson merged 1 commit intomainfrom
fix/medcat-trainer/fix-tracing-wsgi
Mar 12, 2026
Merged

fix(medcat-trainer): Fix opentelemetry tracing running with wsgi command#366
alhendrickson merged 1 commit intomainfrom
fix/medcat-trainer/fix-tracing-wsgi

Conversation

@alhendrickson
Copy link
Collaborator

Missed this as the command it runs locally is now different. When it runs with the wsgi command it didnt call the initialize line

# Dev live-reload: runserver restarts and re-imports on file change; uWSGI py-autoreload only restarts workers (old code in memory).
if [ ${MCT_DEV_LIVERELOAD:-0} -eq 1 ]; then
  echo "Starting with Django runserver (live reload)"
  cd /home/api
  exec uv run python manage.py runserver 0.0.0.0:8000
else
  exec uv run uwsgi --http-timeout 360s --http :8000 --master --chdir /home/api/  --module core.wsgi
fi

@alhendrickson alhendrickson merged commit e35d9dc into main Mar 12, 2026
10 checks passed
@alhendrickson alhendrickson deleted the fix/medcat-trainer/fix-tracing-wsgi branch March 12, 2026 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants