• Alfredo Di Napoli's avatar
    Use Async.race in serverCLI start-all to fix initialisation bug · d4dca13d
    Alfredo Di Napoli authored
    This commit uses the `race` function from the async library to fix a bug
    where exceptions raised from the server async wouldn't be caught by the
    top-level code.
    
    The bug was stemming from the fact that `runAllWorkers` is **blocking**,
    despite its usage of `forConcurrently_`. Therefore we were never
    actually running the `wait` function below, but rather we were hanging
    waiting on the result of the first function.
    
    As a result the server could die but the workers could keep the main
    thread alive, causing the bug we just saw as part of #463.
    d4dca13d
Name
Last commit
Last update
..
gargantext-central-exchange Loading commit data...
gargantext-cli Loading commit data...
metrics Loading commit data...
scripts Loading commit data...
backup Loading commit data...
build Loading commit data...
cli Loading commit data...
ghci Loading commit data...
gource Loading commit data...
haddock Loading commit data...
init Loading commit data...
install Loading commit data...
psql Loading commit data...
run Loading commit data...
setup-ci-environment Loading commit data...
sql Loading commit data...
track_haskell_deps.hs Loading commit data...
update-project-dependencies Loading commit data...