Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
flamenco-worker-python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
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
blender
flamenco-worker-python
Commits
4608cf7d
Commit
4608cf7d
authored
7 years ago
by
Sybren A. Stüvel
Browse files
Options
Downloads
Patches
Plain Diff
Added `--version` CLI option to show the version of Flamenco Worker
parent
cd60e1ca
No related branches found
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
flamenco_worker/cli.py
+7
-0
7 additions, 0 deletions
flamenco_worker/cli.py
with
8 additions
and
0 deletions
CHANGELOG.md
+
1
−
0
View file @
4608cf7d
...
@@ -14,6 +14,7 @@ changed functionality, fixed bugs).
...
@@ -14,6 +14,7 @@ changed functionality, fixed bugs).
This is only supported on POSIX platforms that have those signals.
This is only supported on POSIX platforms that have those signals.
-
Worker can be told to shut down by the Manager. The environment (for example systemd
-
Worker can be told to shut down by the Manager. The environment (for example systemd
on Linux) is responsible for restarting Flamenco Worker after such a shutdown.
on Linux) is responsible for restarting Flamenco Worker after such a shutdown.
-
Added
`--version`
CLI option to show the version of Flamenco Worker and quit.
## Version 2.0.8 (released 2017-09-07)
## Version 2.0.8 (released 2017-09-07)
...
...
This diff is collapsed.
Click to expand it.
flamenco_worker/cli.py
+
7
−
0
View file @
4608cf7d
...
@@ -17,6 +17,8 @@ def main():
...
@@ -17,6 +17,8 @@ def main():
parser
.
add_argument
(
'
-v
'
,
'
--verbose
'
,
action
=
'
store_true
'
,
parser
.
add_argument
(
'
-v
'
,
'
--verbose
'
,
action
=
'
store_true
'
,
help
=
'
Show configuration before starting,
'
help
=
'
Show configuration before starting,
'
'
and asyncio task status at shutdown.
'
)
'
and asyncio task status at shutdown.
'
)
parser
.
add_argument
(
'
-V
'
,
'
--version
'
,
action
=
'
store_true
'
,
help
=
'
Show the version of Flamenco Worker and stops.
'
)
parser
.
add_argument
(
'
-r
'
,
'
--reregister
'
,
action
=
'
store_true
'
,
parser
.
add_argument
(
'
-r
'
,
'
--reregister
'
,
action
=
'
store_true
'
,
help
=
"
Erases authentication information and re-registers this worker
"
help
=
"
Erases authentication information and re-registers this worker
"
"
at the Manager. WARNING: this can cause duplicate worker information
"
"
at the Manager. WARNING: this can cause duplicate worker information
"
...
@@ -27,6 +29,11 @@ def main():
...
@@ -27,6 +29,11 @@ def main():
"
for more powerful options.
"
)
"
for more powerful options.
"
)
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
if
args
.
version
:
from
.
import
__version__
print
(
__version__
)
raise
SystemExit
()
# Load configuration
# Load configuration
from
.
import
config
from
.
import
config
confparser
=
config
.
load_config
(
args
.
config
,
args
.
verbose
)
confparser
=
config
.
load_config
(
args
.
config
,
args
.
verbose
)
...
...
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