Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Release Engineering
Public
distrobuild
Commits
d6546e28
Commit
d6546e28
authored
Apr 12, 2021
by
Mustafa Gezen
🏗
Browse files
Catch and log exceptions in scheduler
parent
11001fa5
Changes
1
Hide whitespace changes
Inline
Side-by-side
distrobuild_scheduler/periodic_tasks.py
View file @
d6546e28
...
...
@@ -100,7 +100,10 @@ async def check_build_status():
while
True
:
logger
.
debug
(
"[*] Running periodic task: check_build_status"
)
await
atomic_check_build_status
()
try
:
await
atomic_check_build_status
()
except
Exception
as
e
:
logger
.
error
(
e
)
# run every 5 minutes
await
asyncio
.
sleep
(
60
*
5
)
...
...
@@ -111,7 +114,10 @@ async def sign_unsigned_builds():
while
True
:
logger
.
debug
(
"[*] Running periodic task: sign_unsigned_builds"
)
await
atomic_sign_unsigned_builds
()
try
:
await
atomic_sign_unsigned_builds
()
except
Exception
as
e
:
logger
.
error
(
e
)
# run every 5 minutes
# run every 5 minutes
await
asyncio
.
sleep
(
60
*
5
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment