Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
clive
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
clive
Commits
847bb16e
Commit
847bb16e
authored
3 weeks ago
by
Mateusz Żebrak
Browse files
Options
Downloads
Patches
Plain Diff
Make LockSource literal consistent with worker name
parent
3034dc37
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!601
Async guard
,
!600
v1.27.5.21 Release
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
clive/__private/core/app_state.py
+1
-1
1 addition, 1 deletion
clive/__private/core/app_state.py
clive/__private/core/world.py
+1
-1
1 addition, 1 deletion
clive/__private/core/world.py
clive/__private/ui/app.py
+1
-1
1 addition, 1 deletion
clive/__private/ui/app.py
with
3 additions
and
3 deletions
clive/__private/core/app_state.py
+
1
−
1
View file @
847bb16e
...
@@ -9,7 +9,7 @@ if TYPE_CHECKING:
...
@@ -9,7 +9,7 @@ if TYPE_CHECKING:
from
clive.__private.core.wallet_container
import
WalletContainer
from
clive.__private.core.wallet_container
import
WalletContainer
from
clive.__private.core.world
import
World
from
clive.__private.core.world
import
World
LockSource
=
Literal
[
"
beekeeper_
monitoring_thread
"
,
"
unknown
"
]
LockSource
=
Literal
[
"
beekeeper_
wallet_lock_status_update_worker
"
,
"
unknown
"
]
@dataclass
@dataclass
...
...
This diff is collapsed.
Click to expand it.
clive/__private/core/world.py
+
1
−
1
View file @
847bb16e
...
@@ -271,7 +271,7 @@ class TUIWorld(World, CliveDOMNode):
...
@@ -271,7 +271,7 @@ class TUIWorld(World, CliveDOMNode):
self
.
node
.
change_related_profile
(
profile
)
self
.
node
.
change_related_profile
(
profile
)
def
_on_going_into_locked_mode
(
self
,
source
:
LockSource
)
->
None
:
def
_on_going_into_locked_mode
(
self
,
source
:
LockSource
)
->
None
:
if
source
==
"
beekeeper_
monitoring_thread
"
:
if
source
==
"
beekeeper_
wallet_lock_status_update_worker
"
:
self
.
app
.
notify
(
"
Switched to the LOCKED mode due to timeout.
"
,
timeout
=
10
)
self
.
app
.
notify
(
"
Switched to the LOCKED mode due to timeout.
"
,
timeout
=
10
)
self
.
app
.
pause_refresh_node_data_interval
()
self
.
app
.
pause_refresh_node_data_interval
()
self
.
app
.
pause_refresh_alarms_data_interval
()
self
.
app
.
pause_refresh_alarms_data_interval
()
...
...
This diff is collapsed.
Click to expand it.
clive/__private/ui/app.py
+
1
−
1
View file @
847bb16e
...
@@ -291,7 +291,7 @@ class Clive(App[int]):
...
@@ -291,7 +291,7 @@ class Clive(App[int]):
@work
(
name
=
"
beekeeper wallet lock status update worker
"
)
@work
(
name
=
"
beekeeper wallet lock status update worker
"
)
async
def
update_wallet_lock_status_from_beekeeper
(
self
)
->
None
:
async
def
update_wallet_lock_status_from_beekeeper
(
self
)
->
None
:
if
self
.
world
.
_beekeeper_manager
:
if
self
.
world
.
_beekeeper_manager
:
await
self
.
world
.
commands
.
sync_state_with_beekeeper
(
"
beekeeper_
monitoring_thread
"
)
await
self
.
world
.
commands
.
sync_state_with_beekeeper
(
"
beekeeper_
wallet_lock_status_update_worker
"
)
async
def
__debug_log
(
self
)
->
None
:
async
def
__debug_log
(
self
)
->
None
:
logger
.
debug
(
"
===================== DEBUG =====================
"
)
logger
.
debug
(
"
===================== DEBUG =====================
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment