Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Add a global configuration option to control when to fall back to system #350

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nh13
Copy link
Member

@nh13 nh13 commented May 28, 2019

paths when configuring an executable.

Alternate implementation to #348

@@ -165,25 +166,40 @@ private[config] trait ConfigurationLike extends LazyLogging {
}
}

/** True to fall back to the searching the system path when a configuration key exists but the executable does not.
* False to throw an exception if the configuration key exists but the executable does not. */
private def fallBackToSystemPath: Boolean = configure(Configuration.Keys.FallBackToSystemPath, false)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have to think about if this could be a lazy val (i.e. is config immutable)

val SystemCores = "dagr.system-cores"
val SystemMemory = "dagr.system-memory"
val PrintArgs = "dagr.print-args"
val FallBackToSystemPath = "dagr.fall-back-to-system-path"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fall-back-to-system-path-for-missing-executables

?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants