Verified Commit 8fb583cb authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

Merge branch 'dev' into 238-dev-async-job-worker

parents f628b14e 0bbbba60
Pipeline #6960 failed with stages
...@@ -10,6 +10,10 @@ ...@@ -10,6 +10,10 @@
2. [Installation](#install) 2. [Installation](#install)
3. [Use cases](#use-cases) 3. [Use cases](#use-cases)
4. [Notes for developers](#develop) 4. [Notes for developers](#develop)
5. [`haskell-language-server`](#haskell-language-server)
6. [Running the tests](#running-tests)
7. [Async workers](#async-workers)
8. [Notifications](#notifications)
## About the project <a name="about"></a> ## About the project <a name="about"></a>
...@@ -349,7 +353,7 @@ $ ALTER ROLE gargantua PASSWORD 'yourPasswordIn_gargantext-settings.toml' ...@@ -349,7 +353,7 @@ $ ALTER ROLE gargantua PASSWORD 'yourPasswordIn_gargantext-settings.toml'
Maybe you need to change the port to 5433 for database connection in your gargantext.ini file. Maybe you need to change the port to 5433 for database connection in your gargantext.ini file.
## `haskell-language-server` ## `haskell-language-server` <a name="haskell-language-server"></a>
If you want to use `haskell-language-server` for GHC 9.4.7, install it If you want to use `haskell-language-server` for GHC 9.4.7, install it
with `ghcup`: with `ghcup`:
...@@ -359,7 +363,7 @@ ghcup compile hls --version 2.7.0.0 --ghc 9.4.7 ...@@ -359,7 +363,7 @@ ghcup compile hls --version 2.7.0.0 --ghc 9.4.7
https://haskell-language-server.readthedocs.io/en/latest/installation.html https://haskell-language-server.readthedocs.io/en/latest/installation.html
## Running the tests ## Running the tests <a name="running-tests"></a>
Running the tests can be done via the following command: Running the tests can be done via the following command:
...@@ -390,7 +394,7 @@ golden reference). To do so, it's enough to run the testsuite passing the `--acc ...@@ -390,7 +394,7 @@ golden reference). To do so, it's enough to run the testsuite passing the `--acc
cabal v2-test garg-test-tasty --test-show-details=streaming --flags 'test-crypto no-phylo-debug-logs' --test-option=--pattern='/Phylo/' --test-option=--accept" cabal v2-test garg-test-tasty --test-show-details=streaming --flags 'test-crypto no-phylo-debug-logs' --test-option=--pattern='/Phylo/' --test-option=--accept"
``` ```
# Async workers # Async workers <a name="async-workers"></a>
Async workers allow us to accept long-running jobs and execute them Async workers allow us to accept long-running jobs and execute them
asynchronously. Workers can be spawned on multiple machines, which asynchronously. Workers can be spawned on multiple machines, which
...@@ -451,7 +455,7 @@ worker. In particular, search for `onJobError`/`onJobTimeout` in ...@@ -451,7 +455,7 @@ worker. In particular, search for `onJobError`/`onJobTimeout` in
(logging, sending mail, firing rockets). (logging, sending mail, firing rockets).
# Notifications # Notifications <a name="notifications"></a>
The notifications mechanism has 3 basic components: the `central The notifications mechanism has 3 basic components: the `central
exchange`, the `dispatcher` and the `websocket server`. exchange`, the `dispatcher` and the `websocket server`.
......
...@@ -852,8 +852,6 @@ test-suite garg-test-tasty ...@@ -852,8 +852,6 @@ test-suite garg-test-tasty
Test.Utils Test.Utils
Test.Utils.Crypto Test.Utils.Crypto
Test.Utils.Db Test.Utils.Db
Test.Utils.Crypto
Test.Utils.Crypto
Test.Utils.Jobs Test.Utils.Jobs
Test.Utils.Jobs.Types Test.Utils.Jobs.Types
Test.Utils.Notifications Test.Utils.Notifications
......
module Test.API where module Test.API where
import Gargantext.Core.Config.Types (NotificationsConfig)
import Prelude import Prelude
import Test.Hspec import Test.Hspec
import qualified Test.API.Authentication as Auth import qualified Test.API.Authentication as Auth
......
...@@ -76,4 +76,3 @@ tests = sequential $ aroundAll withTestDBAndPort $ do ...@@ -76,4 +76,3 @@ tests = sequential $ aroundAll withTestDBAndPort $ do
md `shouldBe` Just (DT.NUpdateTree nodeId) md `shouldBe` Just (DT.NUpdateTree nodeId)
mTimeout `shouldSatisfy` isJust mTimeout `shouldSatisfy` isJust
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment