Skip to content

Feat: add uptime fields to health endpoint#650

Closed
Hakimziyech18 wants to merge 5 commits into
SoroScan:mainfrom
Hakimziyech18:feat/health-uptime-field
Closed

Feat: add uptime fields to health endpoint#650
Hakimziyech18 wants to merge 5 commits into
SoroScan:mainfrom
Hakimziyech18:feat/health-uptime-field

Conversation

@Hakimziyech18
Copy link
Copy Markdown
Contributor

Summary

This PR adds process uptime tracking to the health endpoint.

Changes made

  • Added Django process start time tracking using a module-level start timestamp
  • Added uptime_seconds to the /health/ response
  • Added human-readable uptime formatting
  • Added tests to verify:
    • uptime fields are present
    • uptime_seconds is positive
    • uptime calculation is accurate
    • uptime increases across requests

Validation

  • python -m pytest soroscan/ingest/tests/test_health.py -v
  • 6 passed, 1 warning

Closes #473

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 29, 2026

@Hakimziyech18 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Hakimziyech18
Copy link
Copy Markdown
Contributor Author

conflict has also been resolved.

@Hakimziyech18
Copy link
Copy Markdown
Contributor Author

conflict has also been resolved.

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.

Implement 'uptime' field in the system info endpoint

1 participant