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

Switch lock system to allow expire #135

Open
j0k3r opened this issue Mar 27, 2017 · 2 comments
Open

Switch lock system to allow expire #135

j0k3r opened this issue Mar 27, 2017 · 2 comments

Comments

@j0k3r
Copy link
Owner

j0k3r commented Mar 27, 2017

In Symfony 3.3 the lock system will now include an expire option.

Since the fetch command is sometimes locked because a website took too long to respond or timeout or I really don't know what happen... using expire lock might avoid the command to be locked until a manual action is done.

// blocking, expiring in 60 seconds (unless the lock is refreshed)
$lock = $container->get('lock')->acquire(true, 60);

➡️ http://symfony.com/blog/new-in-symfony-3-3-lock-component

@j0k3r
Copy link
Owner Author

j0k3r commented Sep 8, 2017

Postponed in Symfony 3.4 🙄

@j0k3r
Copy link
Owner Author

j0k3r commented May 11, 2019

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

No branches or pull requests

1 participant