Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
191
Issues
191
List
Board
Labels
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-gargantext
Commits
16692062
Verified
Commit
16692062
authored
Sep 12, 2025
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[toml] remove js_job_timeout/js_id_timeout as there aren't used
parent
ae6685ad
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
21 deletions
+5
-21
Ini.hs
bin/gargantext-cli/CLI/Ini.hs
+1
-3
gargantext-settings.toml_toModify
gargantext-settings.toml_toModify
+0
-4
Settings.hs
src/Gargantext/API/Admin/Settings.hs
+0
-3
Types.hs
src/Gargantext/Core/Config/Types.hs
+4
-11
No files found.
bin/gargantext-cli/CLI/Ini.hs
View file @
16692062
...
...
@@ -79,9 +79,7 @@ convertConfigs ini@(Ini.GargConfig { .. }) iniMail nlpConfig connInfo =
,
_f_searx_url
=
_gc_frame_searx_url
,
_f_istex_url
=
_gc_frame_istex_url
}
,
_gc_jobs
=
CTypes
.
JobsConfig
{
_jc_max_docs_parsers
=
_gc_max_docs_parsers
,
_jc_max_docs_scrapers
=
_gc_max_docs_scrapers
,
_jc_js_job_timeout
=
_gc_js_job_timeout
,
_jc_js_id_timeout
=
_gc_js_id_timeout
}
,
_jc_max_docs_scrapers
=
_gc_max_docs_scrapers
}
,
_gc_apis
=
CTypes
.
APIsConfig
{
_ac_epo_api_url
=
_gc_epo_api_url
,
_ac_scrapyd_url
}
,
_gc_worker
=
WorkerSettings
{
_wsDefinitions
=
[
wd
]
...
...
gargantext-settings.toml_toModify
View file @
16692062
...
...
@@ -89,10 +89,6 @@ istex_url = URL_TO_CHANGE
max_docs_parsers = 4000
max_docs_scrapers = 4000
# in seconds
js_job_timeout = 6000
js_id_timeout = 6000
[database]
# PostgreSQL access
...
...
src/Gargantext/API/Admin/Settings.hs
View file @
16692062
...
...
@@ -153,9 +153,6 @@ newEnv logger config dispatcher = do
let
!
nodeStory_env
=
mkNodeStoryEnv
-- secret <- Jobs.genSecret
-- let jobs_settings = (Jobs.defaultJobSettings 1 secret)
-- & Jobs.l_jsJobTimeout .~ (fromIntegral $ config_env ^. hasConfig ^. gc_jobs . jc_js_job_timeout)
-- & Jobs.l_jsIDTimeout .~ (fromIntegral $ config_env ^. hasConfig ^. gc_jobs . jc_js_id_timeout)
!
_env_jwt_settings
<-
jwtSettings
(
_gc_secrets
config
)
...
...
src/Gargantext/Core/Config/Types.hs
View file @
16692062
...
...
@@ -41,8 +41,6 @@ module Gargantext.Core.Config.Types
,
JobsConfig
(
..
)
,
jc_max_docs_parsers
,
jc_max_docs_scrapers
,
jc_js_job_timeout
,
jc_js_id_timeout
,
MicroServicesSettings
(
..
)
,
NotificationsConfig
(
..
)
,
JWKFile
(
..
)
...
...
@@ -290,24 +288,19 @@ jwtSettings (SecretsConfig { _s_jwk_file = JWKFile jwkFile }) = do
data
JobsConfig
=
JobsConfig
{
_jc_max_docs_parsers
::
!
Integer
,
_jc_max_docs_scrapers
::
!
Integer
,
_jc_js_job_timeout
::
!
Integer
,
_jc_js_id_timeout
::
!
Integer
}
,
_jc_max_docs_scrapers
::
!
Integer
}
deriving
(
Generic
,
Show
)
instance
FromValue
JobsConfig
where
fromValue
=
parseTableFromValue
$
do
_jc_max_docs_parsers
<-
reqKey
"max_docs_parsers"
_jc_max_docs_scrapers
<-
reqKey
"max_docs_scrapers"
_jc_js_job_timeout
<-
reqKey
"js_job_timeout"
_jc_js_id_timeout
<-
reqKey
"js_id_timeout"
return
$
JobsConfig
{
..
}
instance
ToValue
JobsConfig
where
toValue
=
defaultTableToValue
instance
ToTable
JobsConfig
where
toTable
(
JobsConfig
{
..
})
=
table
[
"max_docs_parsers"
.=
_jc_max_docs_parsers
,
"max_docs_scrapers"
.=
_jc_max_docs_scrapers
,
"js_job_timeout"
.=
_jc_js_job_timeout
,
"js_id_timeout"
.=
_jc_js_id_timeout
]
toTable
(
JobsConfig
{
..
})
=
table
[
"max_docs_parsers"
.=
_jc_max_docs_parsers
,
"max_docs_scrapers"
.=
_jc_max_docs_scrapers
]
makeLenses
''
J
obsConfig
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment