Skip to content

Set values from config where they are used#270

Open
bellisk wants to merge 2 commits intockan:masterfrom
bellisk:set-values-from-config-when-needed
Open

Set values from config where they are used#270
bellisk wants to merge 2 commits intockan:masterfrom
bellisk:set-values-from-config-when-needed

Conversation

@bellisk
Copy link
Contributor

@bellisk bellisk commented Feb 26, 2026

Setting all these values from the config at the head of the file does not work when using ckanext-envvars (no matter in which order the plugins are specified in the config). Instead, set them in code before they are used.

Fixes #271

Setting all these values from the config at the head of the file does not work when using ckanext-envvars (no matter in which order the plugins are specified in the config). Instead, set them in code before they are used.
@ThrawnCA
Copy link
Collaborator

This would mean unnecessarily loading from config again with every single job. Could it instead be loaded once, but later than module load? Eg by one of the plugin hooks?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Config file options ignored

2 participants