WIP: convert GORM to sqlc, for jobs/tasks #104304

Closed
Sybren A. Stüvel wants to merge 27 commits from sqlc-task into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

27 Commits

Author SHA1 Message Date
00e904d4fc Convert task failure persistence to SQLC 2024-05-26 10:47:38 +02:00
f8a783fa5f Merge remote-tracking branch 'origin/main' into sqlc-task 2024-05-21 00:58:50 +02:00
d4e3d8f66b Convert TaskTouchedByWorker to sqlc 2024-05-20 22:02:02 +02:00
ae9d51a6c3 Convert UpdateJobsTaskStatuses(Conditional) to sqlc 2024-05-20 21:45:45 +02:00
8676b35bed Convert FetchTasksOfJob() and FetchTasksOfJobInStatus() to sqlc 2024-05-20 21:36:20 +02:00
4ef7ba479f Manger: Convert JobHasTasksInStatus and CountTasksOfJobInStatus to sqlc 2024-05-20 21:18:19 +02:00
6fd09015df Convert FetchTasksOfWorkerInStatusOfJob to sqlc 2024-05-20 20:55:33 +02:00
f91a76a5cf Document useful git config in gitattributes 2024-05-20 19:30:27 +02:00
3da4b0c54f .gitattributes: mark .sql files as text 2024-05-20 19:26:33 +02:00
febc88fd9f Manager: convert TaskAssignToWorker and FetchTasksOfWorkerInStatus to sqlc 2024-05-20 19:25:50 +02:00
c31d492b7a Manager: convert db.SaveTaskActivity() to SQLC 2024-05-18 12:40:42 +02:00
396a443c4a Merge remote-tracking branch 'origin/main' into sqlc-task 2024-05-18 12:38:20 +02:00
3a4851f94a Convert db.SaveTaskStatus() to SQLC 2024-05-18 12:30:45 +02:00
7e6b10b1c9 Convert db.SaveTask() to SQLC 2024-05-18 12:05:24 +02:00
0cad3c378f SQLC: upgrade to 1.26.0
Doesn't change anything function in the generated code, just the version
numbers & handling of empty comments in the query file.
2024-05-18 12:04:43 +02:00
261e0820d7 Manager: increase wait time in worker timeout test
Instead of waiting for 1ns, wait for 1ms. That's more stable on my laptop,
and still short enough to not really slow down the test.
2024-05-18 11:57:24 +02:00
bb912eea68 Manager: Remove SaveTask function from interface
Remove `SaveTask(...)` from the persistence layer interface as defined
by the `api_impl` package. It's not used.
2024-05-16 19:31:40 +02:00
bfc7c07629 Merge remote-tracking branch 'origin/main' into sqlc-task 2024-05-16 18:50:26 +02:00
40b76f9489 Fix unit test 2024-05-10 22:26:42 +02:00
7d354bcb36 Merge remote-tracking branch 'origin/main' into sqlc-task 2024-05-06 09:05:15 +02:00
6509be53b7 Fetch job when fetching task 2024-03-27 11:43:03 +01:00
7769f99bcb Fixed worker tags query 2024-03-27 11:09:02 +01:00
95021ca702 Merge branch 'main' into sqlc-task 2024-03-27 10:48:06 +01:00
566c2d7962 More inching forward 2024-03-18 18:57:35 +01:00
3860dca4f1 Inching forward 2024-03-16 12:21:40 +01:00
567adfca32 Temp stuff 2024-03-16 12:21:40 +01:00
0a0b3f3324 Start of conversion of FetchTask to sqlc
This is a bit more work than other queries, as it also breaks apart the
fetching of the job and the worker into separate ones.
2024-03-16 12:21:40 +01:00