Skip to content

Implementation for the worker API - #1121

Merged
Julian Gutierrez Oschmann (juli4n) merged 1 commit into
agent-substrate:mainfrom
sfunkenhauser:worker_api_impl
Aug 25, 2026
Merged

Implementation for the worker API#1121
Julian Gutierrez Oschmann (juli4n) merged 1 commit into
agent-substrate:mainfrom
sfunkenhauser:worker_api_impl

Conversation

@sfunkenhauser

Copy link
Copy Markdown
Collaborator

Fixes #730

  • [ x ] Tests pass
  • [ x ] Appropriate changes to documentation are included in the PR

@sfunkenhauser
sfunkenhauser marked this pull request as ready for review August 21, 2026 17:51
return errs
}

func (s *Service) DrainWorker(ctx context.Context, req *ateapipb.DrainWorkerRequest) (*ateapipb.Worker, error) {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Right now DrainWorker has unnecessary preconditions, as these are required at the storage layer. I'm not sure this PR needs to be blocked by this, but we should discuss if the storage layer is the correct place to enforce preconditions.

Comment thread cmd/ateapi/internal/controlapi/worker.go Outdated
@sfunkenhauser
sfunkenhauser force-pushed the worker_api_impl branch 3 times, most recently from a6fa09d to ce0fba8 Compare August 24, 2026 23:52
@@ -2454,8 +2454,10 @@ func TestResumeActor_CrashesIfAssignedWorkerIsDraining(t *testing.T) {
if err != nil {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Let's do in follow up PR, but can we add tests for the Worker methods to functionaltest/worker_test.go?

@juli4n
Julian Gutierrez Oschmann (juli4n) merged commit 9b08310 into agent-substrate:main Aug 25, 2026
9 checks passed
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.

Create a CRUD API for Workers

2 participants