Skip to content

Agent set callback interval method#926

Merged
Cictrone merged 9 commits intomainfrom
agent_set_callback_interval
May 4, 2025
Merged

Agent set callback interval method#926
Cictrone merged 9 commits intomainfrom
agent_set_callback_interval

Conversation

@Cictrone
Copy link
Copy Markdown
Collaborator

@Cictrone Cictrone commented May 4, 2025

May need some smoothing out around edges but it does work.

/kind documentation
/kind feature
/kind eldritch-function

Example of Imix output in action (going from 5 -> 1 -> 10):

2025-05-04T05:34:28.093Z INFO  imix::agent             > callback complete (duration=0s, sleep=5s)
 2025-05-04T05:34:33.097Z INFO  imix::agent             > callback complete (duration=0s, sleep=5s)
 2025-05-04T05:34:38.101Z INFO  imix::agent             > callback complete (duration=0s, sleep=5s)
 2025-05-04T05:34:43.106Z INFO  imix::agent             > 1 tasks claimed
 2025-05-04T05:34:43.107Z INFO  imix::agent             > spawned task execution for id=42949672962
 2025-05-04T05:34:43.107Z INFO  eldritch::runtime::eval > evaluating tome (task_id=42949672962)
 2025-05-04T05:34:43.108Z INFO  eldritch::runtime::eval > tome evaluation successful (task_id=42949672962)
 2025-05-04T05:34:43.108Z INFO  imix::agent             > callback complete (duration=0s, sleep=1s)
 2025-05-04T05:34:43.108Z INFO  imix::task              > message success (task_id=42949672962,msg=SetCallbackInterval)
 2025-05-04T05:34:43.130Z INFO  imix::task              > message success (task_id=42949672962,msg=ReportAggOutput)
 2025-05-04T05:34:44.112Z INFO  imix::agent             > callback complete (duration=0s, sleep=1s)
 2025-05-04T05:34:45.116Z INFO  imix::agent             > callback complete (duration=0s, sleep=1s)
 2025-05-04T05:34:46.120Z INFO  imix::agent             > callback complete (duration=0s, sleep=1s)
 2025-05-04T05:34:47.124Z INFO  imix::agent             > callback complete (duration=0s, sleep=1s)
 2025-05-04T05:34:48.128Z INFO  imix::agent             > callback complete (duration=0s, sleep=1s)
 2025-05-04T05:34:49.131Z INFO  imix::agent             > callback complete (duration=0s, sleep=1s)
 2025-05-04T05:34:50.135Z INFO  imix::agent             > callback complete (duration=0s, sleep=1s)
 2025-05-04T05:34:51.139Z INFO  imix::agent             > callback complete (duration=0s, sleep=1s)
 2025-05-04T05:34:52.143Z INFO  imix::agent             > callback complete (duration=0s, sleep=1s)
 2025-05-04T05:34:53.147Z INFO  imix::agent             > callback complete (duration=0s, sleep=1s)
 2025-05-04T05:34:54.151Z INFO  imix::agent             > callback complete (duration=0s, sleep=1s)
 2025-05-04T05:34:55.155Z INFO  imix::agent             > 1 tasks claimed
 2025-05-04T05:34:55.156Z INFO  imix::agent             > spawned task execution for id=42949672963
 2025-05-04T05:34:55.156Z INFO  eldritch::runtime::eval > evaluating tome (task_id=42949672963)
 2025-05-04T05:34:55.157Z INFO  eldritch::runtime::eval > tome evaluation successful (task_id=42949672963)
 2025-05-04T05:34:55.157Z INFO  imix::task              > message success (task_id=42949672963,msg=SetCallbackInterval)
 2025-05-04T05:34:55.157Z INFO  imix::agent             > callback complete (duration=0s, sleep=10s)
 2025-05-04T05:34:55.181Z INFO  imix::task              > message success (task_id=42949672963,msg=ReportAggOutput)
 2025-05-04T05:35:05.161Z INFO  imix::agent             > callback complete (duration=0s, sleep=10s)

@Cictrone
Copy link
Copy Markdown
Collaborator Author

Cictrone commented May 4, 2025

TODO:

  • Cleanup Message Changes
  • undo dispatch changes(not needed)
  • cleanup unwraps
  • comments?

Copy link
Copy Markdown
Collaborator

@hulto hulto left a comment

Choose a reason for hiding this comment

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

In the past there's been interest in surfacing the callback interval to the server so we can display offline.
Can we also add a server side ent and emit the config up to the server.

@Cictrone
Copy link
Copy Markdown
Collaborator Author

Cictrone commented May 4, 2025

In the past there's been interest in surfacing the callback interval to the server so we can display offline. Can we also add a server side ent and emit the config up to the server.

This already exists today on Beacon :)

Copy link
Copy Markdown
Collaborator

@hulto hulto left a comment

Choose a reason for hiding this comment

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

VERY POGGERS!

@Cictrone Cictrone merged commit a6502e4 into main May 4, 2025
4 checks passed
@Cictrone Cictrone deleted the agent_set_callback_interval branch May 4, 2025 21:22
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.

2 participants