Skip to content

Comments

Rename ProcessingService last_checked fields to last_seen#1146

Draft
mihow wants to merge 2 commits intomainfrom
issue-1122-rename-last-checked
Draft

Rename ProcessingService last_checked fields to last_seen#1146
mihow wants to merge 2 commits intomainfrom
issue-1122-rename-last-checked

Conversation

@mihow
Copy link
Collaborator

@mihow mihow commented Feb 21, 2026

Summary

Closes #1122

  • Renames last_checkedlast_seen, last_checked_livelast_seen_live, last_checked_latencylast_seen_latency on the ProcessingService model
  • Adds mark_seen() method for async/pull-mode services to record liveness when they register pipelines
  • Updates the pipeline registration endpoint (POST /api/v2/projects/{id}/pipelines/) to call mark_seen(live=True) after successful registration
  • Updates all backend references (serializers, pipeline queryset, tasks docstring)
  • Updates all frontend references (TypeScript models, table columns, dialog, language strings)
  • Includes Django migration using RenameField (data-preserving, no data loss)

The naming better reflects the semantic difference between:

  • Sync/push services (with endpoint_url): Antenna actively checks the service via the periodic Celery Beat task, updating last_seen/last_seen_live from the health check response
  • Async/pull services (without endpoint_url): Workers report in by registering pipelines, and we record when we last heard from them via mark_seen()

Test plan

  • New unit tests for mark_seen() method (live=True and live=False)
  • New integration test verifying pipeline registration updates last_seen/last_seen_live
  • Existing TestProcessingServiceAPI tests pass with renamed fields
  • Existing TestPipeline and TestProjectPipelinesAPI tests pass
  • Verify UI columns show "Last seen" instead of "Last checked"
  • Verify processing service detail dialog shows "Last seen" label

…1122)

Rename fields to better reflect the semantic difference between sync and
async processing service status tracking:
- last_checked → last_seen
- last_checked_live → last_seen_live
- last_checked_latency → last_seen_latency

For sync services with endpoint URLs, fields are updated by the periodic
status checker. For async/pull-mode services, a new mark_seen() method
is called when the service registers pipelines, recording that we heard
from it.

Also updates all references in serializers, pipeline queryset, views,
frontend models, columns, dialog, and language strings.

Co-Authored-By: Claude <noreply@anthropic.com>
@netlify
Copy link

netlify bot commented Feb 21, 2026

Deploy Preview for antenna-ssec ready!

Name Link
🔨 Latest commit faf0a9e
🔍 Latest deploy log https://app.netlify.com/projects/antenna-ssec/deploys/699930baf8b04f0008284b3a
😎 Deploy Preview https://deploy-preview-1146--antenna-ssec.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Feb 21, 2026

Deploy Preview for antenna-preview ready!

Name Link
🔨 Latest commit faf0a9e
🔍 Latest deploy log https://app.netlify.com/projects/antenna-preview/deploys/699930bad071da00082242aa
😎 Deploy Preview https://deploy-preview-1146--antenna-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 61 (🔴 down 5 from production)
Accessibility: 80 (no change from production)
Best Practices: 100 (no change from production)
SEO: 92 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 21, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch issue-1122-rename-last-checked

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Co-Authored-By: Claude <noreply@anthropic.com>
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.

Update how the status of processing services are checked & reported

1 participant