Skip to content

Conversation

@miltonhultgren
Copy link
Contributor

@miltonhultgren miltonhultgren commented Dec 9, 2025

See WIP usage here

@github-actions github-actions bot added the author:actionable-obs PRs authored by the actionable obs team label Dec 9, 2025
@elasticmachine
Copy link
Contributor

🤖 Jobs for this PR can be triggered through checkboxes. 🚧

ℹ️ To trigger the CI, please tick the checkbox below 👇

  • Click to trigger kibana-pull-request for this PR!
  • Click to trigger kibana-deploy-project-from-pr for this PR!
  • Click to trigger kibana-deploy-cloud-from-pr for this PR!
  • Click to trigger kibana-entity-store-performance-from-pr for this PR!

Comment on lines +31 to +33
const response = await this.storageClient.get({
id,
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to store the task state on our end or can we use the task manager interface ? Can the task manager tell us the state of a task given an id ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Single run tasks are deleted upon completion, so neither status nor state is stored.

id: types.keyword(),
status: types.keyword(),
payload: types.object({ enabled: false }),
error: types.keyword(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need a created_at field and some timeout logic in the scheduling route to prevent a failed task from being in running mode indefinitely

request: KibanaRequest;
}

export class TaskClient<TaskType extends string> {
Copy link
Contributor

@klacabane klacabane Dec 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should probably use a lockManager unless the taskManager provides a guard for us ? what happens if we schedule a task with the same id ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author:actionable-obs PRs authored by the actionable obs team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants