From 0515fd799027130922797d7128fdeab643aec936 Mon Sep 17 00:00:00 2001 From: GitCaddy Dev Date: Wed, 14 Jan 2026 08:32:53 +0000 Subject: [PATCH] Add RequestCleanup field to FetchTaskResponse MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- runner/v1/messages.pb.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/runner/v1/messages.pb.go b/runner/v1/messages.pb.go index 3d58f9b..22d0a89 100644 --- a/runner/v1/messages.pb.go +++ b/runner/v1/messages.pb.go @@ -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