Reduce unnecessary DB queries for Actions tasks #10

Merged
lunny merged 5 commits from sillyguodong/actions-proto-def:feature/fetch_with_task_index into main 2023-06-12 08:16:27 +00:00
Member

implement: https://github.com/go-gitea/gitea/issues/24544

Changes:

  • Add tasks_version in FetchTaskResponse to store the latest version number that Gitea returns to Runner.
  • Add tasks_version in FetchTaskRequest to store the latest version number of Runner when executing fetchTask.

Related:

implement: https://github.com/go-gitea/gitea/issues/24544 Changes: - Add `tasks_version` in `FetchTaskResponse` to store the latest version number that Gitea returns to Runner. - Add `tasks_version` in `FetchTaskRequest` to store the latest version number of Runner when executing `fetchTask`. Related: - Runner side: https://gitea.com/gitea/act_runner/pulls/219 - Gitea side: https://github.com/go-gitea/gitea/pull/25199
sillyguodong added 1 commit 2023-05-29 02:01:16 +00:00
fetch task with index
Some checks failed
checks / check and test (pull_request) Failing after 1m30s
35c2445c5e
sillyguodong added 1 commit 2023-06-07 01:47:17 +00:00
change to version
All checks were successful
checks / check and test (pull_request) Successful in 1m33s
8ddca73d92
sillyguodong added 1 commit 2023-06-12 05:43:13 +00:00
Merge branch 'main' into feature/fetch_with_task_index
All checks were successful
checks / check and test (pull_request) Successful in 1m55s
ab0d1198a5
sillyguodong changed title from WIP: Reduce unnecessary DB queries for Actions tasks to Reduce unnecessary DB queries for Actions tasks 2023-06-12 05:43:32 +00:00
wolfogre reviewed 2023-06-12 07:05:34 +00:00
@ -29,2 +29,3 @@
message FetchTaskRequest {}
message FetchTaskRequest {
int64 task_version = 1;
Owner

task_version does't look good to me. It's not "the version of a task."

I don't have a good idea, but maybe tasks_version could be better? It's the version of whole tasks data.

`task_version` does't look good to me. It's not "the version of a task." I don't have a good idea, but maybe `tasks_version` could be better? It's the version of whole tasks data.
sillyguodong marked this conversation as resolved
sillyguodong added 1 commit 2023-06-12 07:25:16 +00:00
use tasks_version
All checks were successful
checks / check and test (pull_request) Successful in 1m21s
93700ef3e5
sillyguodong added 1 commit 2023-06-12 07:35:09 +00:00
add comment
All checks were successful
checks / check and test (pull_request) Successful in 1m17s
cca27119e2
wolfogre approved these changes 2023-06-12 07:58:40 +00:00
wolfogre approved these changes 2023-06-12 07:59:38 +00:00
lunny approved these changes 2023-06-12 08:16:08 +00:00
lunny merged commit f2983b1900 into main 2023-06-12 08:16:27 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitea/actions-proto-def#10
No description provided.