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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
flamenco-worker-python
Commits
b152067a
Commit
b152067a
authored
Sep 6, 2017
by
Sybren A. Stüvel
Browse files
Options
Downloads
Patches
Plain Diff
Added two missing await statements
parent
4814d557
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
flamenco_worker/worker.py
+2
-2
2 additions, 2 deletions
flamenco_worker/worker.py
with
2 additions
and
2 deletions
flamenco_worker/worker.py
+
2
−
2
View file @
b152067a
...
@@ -444,7 +444,7 @@ class FlamencoWorker:
...
@@ -444,7 +444,7 @@ class FlamencoWorker:
elif
self
.
_push_act_to_manager
is
None
or
self
.
_push_act_to_manager
.
done
():
elif
self
.
_push_act_to_manager
is
None
or
self
.
_push_act_to_manager
.
done
():
# Schedule a future push to manager.
# Schedule a future push to manager.
self
.
_push_act_to_manager
=
asyncio
.
ensure_future
(
self
.
_push_act_to_manager
=
asyncio
.
ensure_future
(
self
.
push_to_manager
(
delay
=
self
.
push_act_max_interval
))
await
self
.
push_to_manager
(
delay
=
self
.
push_act_max_interval
))
async
def
register_log
(
self
,
log_entry
,
*
fmt_args
):
async
def
register_log
(
self
,
log_entry
,
*
fmt_args
):
"""
Registers a log entry, and possibly sends all queued log entries to upstream Manager.
"""
Registers a log entry, and possibly sends all queued log entries to upstream Manager.
...
@@ -474,7 +474,7 @@ class FlamencoWorker:
...
@@ -474,7 +474,7 @@ class FlamencoWorker:
elif
self
.
_push_log_to_manager
is
None
or
self
.
_push_log_to_manager
.
done
():
elif
self
.
_push_log_to_manager
is
None
or
self
.
_push_log_to_manager
.
done
():
# Schedule a future push to manager.
# Schedule a future push to manager.
self
.
_push_log_to_manager
=
asyncio
.
ensure_future
(
self
.
_push_log_to_manager
=
asyncio
.
ensure_future
(
self
.
push_to_manager
(
delay
=
self
.
push_log_max_interval
))
await
self
.
push_to_manager
(
delay
=
self
.
push_log_max_interval
))
def
output_produced
(
self
,
*
paths
:
typing
.
Union
[
str
,
pathlib
.
PurePath
]):
def
output_produced
(
self
,
*
paths
:
typing
.
Union
[
str
,
pathlib
.
PurePath
]):
"""
Registers a produced output (e.g. rendered frame) with the manager.
"""
Registers a produced output (e.g. rendered frame) with the manager.
...
...
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