Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move process label configuration into the daemon #92

Merged
merged 1 commit into from
Sep 8, 2015

Conversation

kellyredding
Copy link
Member

This is more consistent with the process id configuration already
being in the daemon. This also has the benefit of keeping all
non-internal configuration handling being done via the daemon. The
daemon data object that is passed around now is aware of the process
label.

This option is a little different from the others as it isn't
intended to be driven via a DSL option and also that it can instead
be driven by an ENV var.

The process label attr behaves just as it did before: it still
defaults to the daemon name, it can be specified using the same
QS_PROCESS_LABEL env var, and it is still applied to the process
name as before.

The goal here is to make the process label value available to the
error handler in a standard way (via the daemon data) just like all
other user-driven configuration values.

@jcredding how does this look? Is it what you would expect? ready for review.

This is more consistent with the process *id* configuration already
being in the daemon.  This also has the benefit of keeping all
non-internal configuration handling being done via the daemon.  The
daemon data object that is passed around now is aware of the process
label.

This option is a little different from the others as it isn't
intended to be driven via a DSL option and also that it can instead
be driven by an ENV var.

The process label attr behaves just as it did before: it still
defaults to the daemon `name`, it can be specified using the same
`QS_PROCESS_LABEL` env var, and it is still applied to the process
name as before.

The goal here is to make the process label value available to the
error handler in a standard way (via the daemon data) just like all
other user-driven configuration values.
@jcredding
Copy link
Member

@kellyredding - Good stuff 💥 This is what I would expect and is basically what I did to Sanford.

kellyredding added a commit that referenced this pull request Sep 8, 2015
move process label configuration into the daemon
@kellyredding kellyredding merged commit fa12638 into master Sep 8, 2015
@kellyredding kellyredding deleted the kr-process-label branch September 8, 2015 15:37
kellyredding added a commit that referenced this pull request Sep 8, 2015
* move process label configuration into the daemon #92
* hotfix: use more efficient method for checking the QS_PROCESS_LABEL env var (c066219)
* expose dat-worker-pool worker callback configuration #93

/cc @jcredding
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.

2 participants