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

adding timeout param #18080

Merged
merged 2 commits into from
Dec 20, 2019
Merged

adding timeout param #18080

merged 2 commits into from
Dec 20, 2019

Conversation

ArtificialOwl
Copy link
Member

This would help any app trying to save into a locked file to known the estimated timeout when catching the LockedException.

As an example, it will make the Text App not trying to sync every 5s if the lock is initiated by the FilesLock app.

@juliushaertl
Copy link
Member

I would actually prefer to have a separate exception class that extends from LockedException and contains the additional details like lock owner, time

@ArtificialOwl
Copy link
Member Author

@juliushaertl this would limit the app to 18, which is not a big deal. Please have a look to the new TemporaryLockedException

@ArtificialOwl ArtificialOwl force-pushed the enhancement/noid/add-timeout branch 2 times, most recently from 4a3bc37 to a9102dc Compare December 5, 2019 15:36
Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

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

Should still be type-hinted, even if nullable :)

lib/public/Lock/ManuallyLockedException.php Outdated Show resolved Hide resolved
lib/public/Lock/ManuallyLockedException.php Outdated Show resolved Hide resolved
@ArtificialOwl
Copy link
Member Author

ok, learnt something today. should be ok now

@rullzer rullzer mentioned this pull request Dec 11, 2019
43 tasks
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
@rullzer rullzer mentioned this pull request Dec 12, 2019
34 tasks
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
@ChristophWurst ChristophWurst removed the 3. to review Waiting for reviews label Dec 19, 2019
@ChristophWurst ChristophWurst added the 4. to release Ready to be released and/or waiting for tests to finish label Dec 19, 2019
@blizzz blizzz merged commit 40684a5 into master Dec 20, 2019
@blizzz blizzz deleted the enhancement/noid/add-timeout branch December 20, 2019 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants