Add RequestCleanup field to FetchTaskResponse
Allows the server to signal to runners that they should perform disk cleanup.
This is used when runners report low disk space in their capabilities.
🤖 Generated with Claude Code
This commit is contained in:
@@ -448,6 +448,7 @@ type FetchTaskResponse struct {
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
RequestBandwidthTest bool `protobuf:"varint,3,opt,name=request_bandwidth_test,json=requestBandwidthTest,proto3" json:"request_bandwidth_test,omitempty"` // Request runner to perform bandwidth test
|
||||
RequestCleanup bool `protobuf:"varint,4,opt,name=request_cleanup,json=requestCleanup,proto3" json:"request_cleanup,omitempty"` // Request runner to perform disk cleanup
|
||||
Task *Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`
|
||||
TasksVersion int64 `protobuf:"varint,2,opt,name=tasks_version,json=tasksVersion,proto3" json:"tasks_version,omitempty"` // Gitea informs the Runner of the latest version of tasks through `tasks_version`.
|
||||
}
|
||||
@@ -491,6 +492,13 @@ func (x *FetchTaskResponse) GetRequestBandwidthTest() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *FetchTaskResponse) GetRequestCleanup() bool {
|
||||
if x != nil {
|
||||
return x.RequestCleanup
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *FetchTaskResponse) GetTask() *Task {
|
||||
if x != nil {
|
||||
return x.Task
|
||||
|
||||
Reference in New Issue
Block a user