Skip to content

Conversation

@kikkomep
Copy link
Member

This pull request improves tracking and monitoring of workflow registration jobs, including status updates, event streaming, and cache timeout adjustments.

Job status tracking improvements:

  • Updated the workflow registration process to set the job status to 'workflow registered' after successful registration in register_workflow (lifemonitor/api/services.py).
  • Updated the workflow processing logic to set the job status to 'completed' once the workflow is created in process_workflows_post (lifemonitor/api/controllers.py).

Job monitoring and API enhancements:

  • Added a new /jobs/<job_id>/events endpoint to provide real-time Server-Sent Events (SSE) streaming of job status updates, allowing clients to monitor job progress live (lifemonitor/tasks/controller.py).

Configuration.

  • Increased the job cache timeout from 1 minute to 10 minutes to ensure job data persists longer for monitoring purposes (lifemonitor/tasks/utils.py).

@kikkomep kikkomep merged commit ccbb21e into crs4:develop Jan 26, 2026
3 checks passed
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.

1 participant