Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
VRE Language
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KIT
virtmat-tools
VRE Language
Commits
e4c9ab4b
Commit
e4c9ab4b
authored
1 month ago
by
Rodrigo Cortes Mejia
Browse files
Options
Downloads
Patches
Plain Diff
docs(faqs): worker note in datastore entry
parent
120700ca
No related branches found
No related tags found
1 merge request
!340
Resolve "faq entry to set datastore configuration in resconfig"
Pipeline
#415751
passed
1 month ago
Stage: Static Analysis
Stage: Regression Tests
Stage: Build Docs
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/faqs.md
+3
-1
3 additions, 1 deletion
docs/faqs.md
with
3 additions
and
1 deletion
docs/faqs.md
+
3
−
1
View file @
e4c9ab4b
...
...
@@ -34,9 +34,11 @@ Then run `texts` again. Then use the [variable update](scl.md#dealing-with-failu
```
python
from
virtmat.middleware.resconfig
import
get_resconfig_loc
,
get_default_resconfig
cfg
=
get_default_resconfig
()
wcfg
=
cfg
.
workers
[
0
]
wcfg
=
cfg
.
workers
[
0
]
# SEE NOTE
wcfg
.
envvars
.
update
({
'
DATASTORE_CONFIG
'
:
'
/alternative/path_to/my_project/datastore_config.yaml
'
})
wcfg
.
default_envvars
.
append
(
'
DATASTORE_CONFIG
'
)
cfg
.
default_worker
=
wcfg
cfg
.
to_file
(
get_resconfig_loc
())
```
**NOTE:**
In this example
`worker[0]`
is assumed as the relevant worker for the datastore configuration. If available, other workers can be selected by using the corresponding index, eg
`worker[n]`
.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment