question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is it possible to set parameter for acquire?

See original GitHub issue

Hi,
In redis_lock/__init__.py line: 341

def __enter__(self):
    acquired = self.acquire(blocking=True)

blocking will always be True when we use cache.lock in with block, Is it possible to set the parameter(blocking/timeout) from __init__ function or another function?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ionelmccommented, Jul 8, 2022

@tavor118sn sure, please make that PR.

0reactions
tavor118sncommented, Jun 13, 2022

@ionelmc Any chance to implement this? I can make a PR if you will review and merge

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set Acquisition Parameters in Image Acquisition Explorer
Before acquiring images or video in the Image Acquisition Explorer app, set acquisition parameters such as region of interest (ROI) and device-specific ...
Read more >
abstract syntax tree - Acquire annotation parameters (or ...
I have a Kotlin annotation: @Retention(AnnotationRetention.SOURCE) @Target(AnnotationTarget.CLASS) annotation class Type( val type: String ).
Read more >
Navigator Acquire Dialog
Acquisition parameter sets - Because the acquisition of maps for target selection typically requires fewer operations and simpler parameter settings than actual ...
Read more >
What Acquisition Criteria Are and How To Develop An ...
Acquisition criteria or investment criteria is a defined set of parameters or requirements that the acquiring company seeks in the company it ...
Read more >
Change "Acquire Image" parameters with front panel control ...
Yes. Select the Advanced tab in the Acquire Image (Smart Camera) step. Select the parameter you want to set using the control on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found