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

Remove START_CTX #111

Merged
merged 1 commit into from May 7, 2024
Merged

Conversation

Earlopain
Copy link
Contributor

START_CTX[:cwd] is already completly unused.
Like the comment states, we can get rid of it. It was used in conjunction with USR2 to modify a running master into spawning workers with different arguments (for a rolling deploy with only one host for example) which is a non-goal for Pitchfork and does in fact not work anymore anyways.

Slight behaviour change: argv was modified to contain the default listener if none was specified which made it appear in the proctitle. This was probably done for other reasons, and I don't see a particular reason why it should continue to do so.

START_CTX[:cwd] is already completly unused.
Like the comment states, we can get rid of it. It was used in conjunction with USR2 to modify a running master into spawning
workers with different arguments which is a non-goal for Pitchfork
@casperisfine
Copy link
Contributor

Technically, both ARGV and $0 are mutable, so it might still make sense to keep a copy.

But since now it's only used to update the proctitle, I suppose it's fine if it no longer reflect the spawn arguments.

@casperisfine casperisfine merged commit 87a7f18 into Shopify:master May 7, 2024
7 checks passed
@Earlopain Earlopain deleted the remove-start-ctx branch May 7, 2024 10:20
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.

None yet

2 participants