MCPcopy Index your code
hub / github.com/coder/coder / SyncComplete

Method SyncComplete

agent/agentsocket/client.go:91–96  ·  view source on GitHub ↗

SyncComplete marks a unit as complete in the dependency graph.

(ctx context.Context, unitName unit.ID)

Source from the content-addressed store, hash-verified

89
90// SyncComplete marks a unit as complete in the dependency graph.
91func (c *Client) SyncComplete(ctx context.Context, unitName unit.ID) error {
92 _, err := c.client.SyncComplete(ctx, &proto.SyncCompleteRequest{
93 Unit: string(unitName),
94 })
95 return err
96}
97
98// SyncReady requests whether a unit is ready to be started. That is, all dependencies are satisfied.
99func (c *Client) SyncReady(ctx context.Context, unitName unit.ID) (bool, error) {

Callers 2

syncCompleteMethod · 0.95
TestSyncCommands_GoldenFunction · 0.95

Calls 1

SyncCompleteMethod · 0.65

Tested by 1

TestSyncCommands_GoldenFunction · 0.76