Commit Graph

11 Commits

Author SHA1 Message Date
Christopher Baines c3cb04cb80 Use fibers when processing new revisions
Just have one fiber at the moment, but this will enable using fibers for
parallelism in the future.

Fibers seemed to cause problems with the logging setup, which was a bit odd in
the first place. So move logging to the parent process which is better anyway.
2023-11-05 13:46:20 +00:00
Christopher Baines 7251c7d653 Stop using a pool of threads for database operations
Now that squee cooperates with suspendable ports, this is unnecessary. Use a
connection pool to still support running queries in parallel using multiple
connections.
2023-07-10 18:56:31 +01:00
Christopher Baines c3c9c07f9a Completely rework the way db connections are handled during requests
Previously, a connection was passed through the code handling the
request. When queries were performed, this could block the thread though,
potentially leaving the server unable to serve other requests.

Instead, this now runs queries in a pool of threads. This should remove the
possibility of blocking the threads used by the web server, and in doing so,
some of the queries have been parallelised.

I''m still not sure about the naming and syntax, but I think the functionality
is a sort of step forward.
2020-10-03 21:35:31 +01:00
Danjela Lura c61a8afd36 Add plain text representation for the page for a single job
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-04-20 22:27:55 +01:00
Danjela Lura 60cb07f469 Add JSON representation for the Jobs page
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-04-20 21:02:22 +01:00
Christopher Baines bfa468a325 Add another 0 to the job default character limit
This seems to work fine, and now because of the channel-instances, it's useful
to display more data by default.
2020-02-16 13:53:49 +00:00
Christopher Baines bf25a8db02 Add a job events page 2020-01-20 19:46:00 +00:00
Christopher Baines 2062badf51 Add a small table of recent job events
To make it easier to see what recently happened.
2020-01-12 17:30:52 +00:00
Christopher Baines 5163398e54 Add pagination to the jobs page 2019-12-26 23:03:12 +00:00
Christopher Baines 263eb0e0a9 Handle unknown requests better within controllers 2019-10-18 17:23:59 +01:00
Christopher Baines 06723370e5 Refactor the jobs pages code
Move the code out of the main controller and html modules. There's now too
much code in these modules, so begin to separate the functionality, starting
with the small amount of code for the jobs pages.
2019-10-13 21:10:10 +01:00