<!-- Add the related story/sub-task/bug number, like Resolves #123, or remove if NA --> **Related issue:** Resolves #38536 Split the activities cleanup job from the queries cleanup job. # Checklist for submitter - [ ] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. - Present in previous PR ## Testing - [x] Added/updated automated tests - [x] QA'd all new/changed functionality manually <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **New Features** * Added automated cleanup job for expired live queries based on activity expiration settings. * **Improvements** * Refactored activity data cleanup to use a dedicated service for better reliability and maintainability. * Enhanced scheduled cleanup operations with improved separation of concerns for activity and live query management. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
14 lines
461 B
Go
14 lines
461 B
Go
// Package api provides the public API for the activity bounded context.
|
|
// External code should use this package to interact with activities.
|
|
package api
|
|
|
|
// Service is the composite interface for the activity bounded context.
|
|
// It embeds all method-specific interfaces. Bootstrap returns this type.
|
|
type Service interface {
|
|
ListActivitiesService
|
|
ListHostPastActivitiesService
|
|
StreamActivitiesService
|
|
NewActivityService
|
|
CleanupExpiredActivitiesService
|
|
}
|