Commit graph

10 commits

Author SHA1 Message Date
a54e842478 Restructure config file 2023-08-17 00:28:58 +02:00
1ec72c92d5 Allow worker to specify bench method as string 2023-08-14 16:47:00 +02:00
3de35e3ac8 Use RFC 3339 dates in worker endpoint 2023-08-14 16:31:44 +02:00
3bfae9c0ad Port worker page 2023-08-13 23:02:18 +02:00
08e240d7db Fix and add documentation 2023-08-13 01:16:12 +02:00
c7a89867a7 Restructure shared types and db columns
Now, the server sends the runner pretty much all run metadata. This way,
the reservation the server makes for the runner is accurate, providing
the runner responds with the same metadata it was sent. It also means
that only the server's system clock is relevant for tie breakers, and a
run's duration spans from the moment it is reserved to the moment it is
saved.

Also, the bench method is now always called `bench_method` and a
human-readable description is stored in the database for each run.
2023-08-12 21:23:36 +02:00
d15d6588f7 Improve and fix runner API
- The server now also signals abort_work if the commit is no longer in
  the queue.
- The server now immediately reserves the work it gives to the worker,
  so other idle workers won't get the same work.
- The server now chooses a run id, not the worker. The worker can still
  submit work under arbitrary run ids when no id is known, for example
  when importing runs from another database.
2023-08-12 13:19:16 +02:00
f79468c871 Fix incorrect HashSet import 2023-08-12 02:16:05 +02:00
9744d5c059 Add todos 2023-08-11 21:47:58 +02:00
6f4793bcf2 Rename runners to workers 2023-08-11 02:12:38 +02:00
Renamed from src/server/runners.rs (Browse further)