Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] re-model monitor executions as a cancellable task #1395

Open
eirsep opened this issue Jan 30, 2024 · 1 comment
Open

[FEATURE] re-model monitor executions as a cancellable task #1395

eirsep opened this issue Jan 30, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@eirsep
Copy link
Member

eirsep commented Jan 30, 2024

Today Alerting execution is not tracked by Opensearch task manager because it is executed as a Job Scheduler job.

This renders us without any control over long runnign monitor exceutions which we may want to cancel or abort

All operations in Opensearch are registerable in Opensearch framework
A sample task looks like

retention_lease_background_sync NS5L3EYoSM2ED7Ivqq1snQ:993186  - transport 1706578387362 01:33:07  5.1h         10.212.107.51 5112ba5b511cfd4495

Alerting monitor execution scheduled by job schuedler should register a cancellable task

alerting/monitor/scheduled NS5L3EYoSM2ED7Ivqq1snQ:993186  - transport 1706578387362 01:33:07 1.5m    10.212.107.51 5112ba5b511cfd4495

task can contain details like monitor id to help with tracking which node is running the monitor.

@eirsep eirsep added enhancement New feature or request untriaged labels Jan 30, 2024
@eirsep
Copy link
Member Author

eirsep commented Feb 9, 2024

We can invoke ExecuteMonitorAction in runJob flow in job scheduler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants