daemon: extract the container run from the task pipeline #1938
Notifications
Due Date
No due date set.
Blocks
#1920 Effective Go: critical paths
sam/archie
Reference: sam/archie#1938
Reference in new issue
Block a user
After #1929 to #1934, Daemon still carries the per-task pipeline and the container run (acquireTaskContainer, runViaAgent, the State Store relay, run credentials, model egress) in one type with about 29 fields and 62 methods. Extract the container run into its own type with required dependencies, the pipeline calling it through a narrow interface.
Done when container_run.go has no *Daemon receiver and its fields are off Daemon.