Skip to content

Feature: Ensure learn-ocaml build serve immediately handles requests at second run #529

@erikmd

Description

@erikmd

Related user(s):

@erikmd

Related issue(s) or PR(s):

No response

Related project scope(s):

web-app UI, web API, build

The problem:

  • Currently, if we want to change an exercise description or solution or test, we restart learn-ocaml build serve --repo=…
  • This rebuilds every exercise, which can be time-consuming;
  • And in the meantime, the learn-ocaml backend is down (HTTP 502 Bad Gateway or so)

Wanted solution:

  • It would be nice to ensure that the server responds immediately at the second build, even if it needs to rebuild all exos.
  • Then when the build is over, atomically set the newest directory as the one to be served.

Considered alternatives:

  • Does this require several threads? Would this benefit from OCaml 5?

Additional context:

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions