Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add the ability to control job conf plugin loading from environment v…
…ariables. All job configuration parameters can be set using environment variables but currently the actual loading of the plugin cannot. This is problematic for setting up single job confs for multiple environemnts (like done with docker-galaxy-stable) when using plugins that may hang waiting for resources (such as Kubernetes for the K8 runner or a MQ for Pulsar for instance) or may require library dependencies not be setup in every environment the job configuration is deployed in. xref bgruening/docker-galaxy-stable#328
- Loading branch information
Showing
4 changed files
with
70 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0"?> | ||
<!-- A sample job config that explicitly configures job running the way it is configured by default (if there is no explicit config). --> | ||
<job_conf> | ||
<plugins> | ||
<plugin id="local" type="runner" load="galaxy.jobs.runners.local:LocalJobRunner" workers="4"/> | ||
<plugin id="local2" type="runner" load="galaxy.jobs.runners.local:LocalJobRunner" workers="4"> | ||
<param id="enabled" from_environ="LOCAL2_ENABLED">True</param> | ||
</plugin> | ||
<plugin id="local3" type="runner" load="galaxy.jobs.runners.local:LocalJobRunner" workers="4"> | ||
<param id="enabled" from_environ="LOCAL3_ENABLED">False</param> | ||
</plugin> | ||
</plugins> | ||
<handlers> | ||
<handler id="main"/> | ||
</handlers> | ||
<destinations default="local"> | ||
<destination id="local" runner="local"/> | ||
<destination id="local2_dest" runner="local2"> | ||
<param id="enabled" from_environ="LOCAL2_ENABLED">True</param> | ||
</destination> | ||
<destination id="local3_dest" runner="local3"> | ||
<param id="enabled" from_environ="LOCAL3_ENABLED">False</param> | ||
</destination> | ||
</destinations> | ||
</job_conf> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters