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
de7e3d00
Commit
de7e3d00
authored
6 years ago
by
Sybren A. Stüvel
Browse files
Options
Downloads
Patches
Plain Diff
Gracefully handle timeout error on May-I-Run task when shutting down
parent
9632b1b2
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
flamenco_worker/cli.py
+3
-0
3 additions, 0 deletions
flamenco_worker/cli.py
with
3 additions
and
0 deletions
flamenco_worker/cli.py
+
3
−
0
View file @
de7e3d00
...
@@ -173,6 +173,9 @@ def main():
...
@@ -173,6 +173,9 @@ def main():
loop
.
run_until_complete
(
asyncio
.
wait_for
(
mir_work_task
,
5
))
loop
.
run_until_complete
(
asyncio
.
wait_for
(
mir_work_task
,
5
))
except
requests
.
exceptions
.
ConnectionError
:
except
requests
.
exceptions
.
ConnectionError
:
log
.
warning
(
"
Unable to connect to HTTP server, but that
'
s fine as we
'
re shutting down.
"
)
log
.
warning
(
"
Unable to connect to HTTP server, but that
'
s fine as we
'
re shutting down.
"
)
except
asyncio
.
TimeoutError
:
log
.
debug
(
"
Timeout waiting for may-I-run task,
"
"
but that
'
s fine as we
'
re shutting down.
"
)
fworker
.
shutdown
()
fworker
.
shutdown
()
...
...
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