kragniz / kragniz/python-etcd3

about add_watch_callback

Open
#2,348 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
450
Forks
194
PR merge metrics
No merged PRs in 30d

Description

Use the add_watch_callback function to listen key events. If the key is deleted, how to get the value before the key deleted in the callback function of add_watch_callback.
For example:
key:/hello value:1234
delete /hello
Using add_watch_callback how to get 1234 when delete event occurs

Looking forward to your answer, thank you very much

Contributor guide

Open the contributing guide

Research direction

Start by reading the add_watch_callback API and the watch-event handling in python-etcd3. Check the deletion event data for the /hello example and determine whether the prior value is exposed. Done means documenting the supported way to retrieve 1234, or clearly stating that the callback cannot provide it.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
distributed-systems
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.