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

[10.x] Use atomic locks for command mutex #47624

Merged

Conversation

Gaitholabi
Copy link
Contributor

@Gaitholabi Gaitholabi commented Jun 30, 2023

Issue:

The commands that implement the Isolatable feature depend on the caching functionality. When the command is running and we execute php artisan cache:clear or call \Cache::flush();, this puts any pending isolated commands into an invalid state.

This PR replaces the direct usage of Cache, with atomic locks, whenever the Cache driver supports it.

@Gaitholabi Gaitholabi changed the title [10.x] use atomic locks for command mutex draft: [10.x] use atomic locks for command mutex Jul 3, 2023
@Gaitholabi Gaitholabi force-pushed the 10.x-use-atomic-locks-with-cli-commands branch from 8d641ba to bea99c9 Compare July 3, 2023 21:38
@Gaitholabi Gaitholabi changed the title draft: [10.x] use atomic locks for command mutex [10.x] use atomic locks for command mutex Jul 3, 2023
@Gaitholabi Gaitholabi force-pushed the 10.x-use-atomic-locks-with-cli-commands branch from f2c46f9 to f21ed5e Compare July 6, 2023 16:17
@GrahamCampbell GrahamCampbell changed the title [10.x] use atomic locks for command mutex [10.x] Use atomic locks for command mutex Jul 8, 2023
@Gaitholabi
Copy link
Contributor Author

@GrahamCampbell could you please review this, when you get the chance?

@taylorotwell taylorotwell merged commit 5a34797 into laravel:10.x Jul 13, 2023
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