Skip to content

Document how to apply updated scheduler templates - #335

Merged
jemus42 merged 2 commits into
mlr-org:mainfrom
n3orma:patch-3
Oct 7, 2026
Merged

jemus42 merged 2 commits into
mlr-org:mainfrom
n3orma:patch-3

Conversation

@n3orma

@n3orma n3orma commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #288

This PR clarifies that changes to the batchtools configuration file or a scheduler template referenced by it can be applied by reloading the existing registry with loadRegistry().

This avoids the need to remove and recreate the registry when updating the configuration or job template.

Clarify that changes to the configuration file or a scheduler template can be applied by reloading the existing registry with loadRegistry().

This avoids the need to remove and recreate the registry.
@jemus42

jemus42 commented Oct 6, 2026

Copy link
Copy Markdown
Member

Maybe this should rather be placed in the loadRegistry docs? And it should explain the mechanism, i.e. that conf.file is source on every load, and the cluster functions are thereby reloaded as well (which may make it easier to reg$cluster.functions = makeClusterFunctionsSlurm("new.tmpl")).

Also worth pointing out that only newly submitJobs()'d jobs pick it up, just in case there may be confusion around queued jobs or so.

@jemus42

jemus42 commented Oct 7, 2026

Copy link
Copy Markdown
Member

Cool, thanks!

@jemus42
jemus42 merged commit 74d99f8 into mlr-org:main Oct 7, 2026
5 checks passed
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.

Edit the job template without clearing the entire registry

2 participants