Commit 791c2a70 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[config] js job timeout settings

parent 7bcd5fc5
...@@ -50,6 +50,9 @@ data GargConfig = GargConfig { _gc_backend_name :: !T.Text ...@@ -50,6 +50,9 @@ data GargConfig = GargConfig { _gc_backend_name :: !T.Text
, _gc_max_docs_scrapers :: !Integer , _gc_max_docs_scrapers :: !Integer
, _gc_pubmed_api_key :: !T.Text , _gc_pubmed_api_key :: !T.Text
, _gc_js_job_timeout :: !Integer
, _gc_js_id_timeout :: !Integer
} }
deriving (Generic, Show) deriving (Generic, Show)
...@@ -90,4 +93,6 @@ readConfig fp = do ...@@ -90,4 +93,6 @@ readConfig fp = do
, _gc_max_docs_parsers = read $ cs $ val' "MAX_DOCS_PARSERS" , _gc_max_docs_parsers = read $ cs $ val' "MAX_DOCS_PARSERS"
, _gc_max_docs_scrapers = read $ cs $ val' "MAX_DOCS_SCRAPERS" , _gc_max_docs_scrapers = read $ cs $ val' "MAX_DOCS_SCRAPERS"
, _gc_pubmed_api_key = val' "PUBMED_API_KEY" , _gc_pubmed_api_key = val' "PUBMED_API_KEY"
, _gc_js_job_timeout = read $ cs $ val' "JS_JOB_TIMEOUT"
, _gc_js_id_timeout = read $ cs $ val' "JS_ID_TIMEOUT"
} }
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