From f9446693439273f6c97e33ad4c62f8d2a296e8b4 Mon Sep 17 00:00:00 2001 From: NianBroken Date: Wed, 22 May 2024 10:14:13 +0800 Subject: [PATCH] Change the maximum number of working threads to 1. --- scripts/delete_old_runs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/delete_old_runs.py b/scripts/delete_old_runs.py index 966b465..ddf8bd9 100644 --- a/scripts/delete_old_runs.py +++ b/scripts/delete_old_runs.py @@ -30,7 +30,7 @@ class GitHubActionsManager: else: # 如果删除失败 print(f"Failed to delete run with ID {run_id}. Status code: {response.status_code}") # 打印错误信息 - def delete_old_runs(self, max_workers=2): + def delete_old_runs(self, max_workers=1): next_page = self.runs_url # 初始化下一页的URL为第一页 while next_page: # 循环直到没有下一页 # 发送GET请求获取一页工作流运行记录