Added the ability to delete run logs

This commit is contained in:
NianBroken
2024-05-10 22:53:28 +08:00 Unverified
parent d43e68c68f
commit 2d95a74668
2 changed files with 3 additions and 31 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ class GitHubActionsManager:
f"Failed to delete run with ID {run_id}. Status code: {response.status_code}"
) # 打印错误信息
def delete_old_runs(self, max_workers=64):
def delete_old_runs(self, max_workers=2):
next_page = self.runs_url # 初始化下一页的URL为第一页
while next_page: # 循环直到没有下一页
print(beijing_time) # 打印时间