Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
agkyra
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
itminedu
agkyra
Commits
f351d34a
Commit
f351d34a
authored
10 years ago
by
Stavros Sachtouris
Committed by
Giorgos Korfiatis
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add a "paused" property to syncer object
parent
8b496888
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
agkyra/agkyra/syncer/syncer.py
+4
-0
4 additions, 0 deletions
agkyra/agkyra/syncer/syncer.py
with
4 additions
and
0 deletions
agkyra/agkyra/syncer/syncer.py
+
4
−
0
View file @
f351d34a
...
...
@@ -44,6 +44,10 @@ class FileSyncer(object):
self
.
clients
=
{
self
.
MASTER
:
master
,
self
.
SLAVE
:
slave
}
self
.
decide_event
=
None
@property
def
paused
(
self
):
return
(
not
self
.
decide_event
.
is_set
())
if
self
.
decide_event
else
True
def
launch_daemons
(
self
):
self
.
start_notifiers
()
self
.
start_decide
()
...
...
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