Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
aura-engine
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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Lars Kruse
aura-engine
Commits
cd9f90f0
Commit
cd9f90f0
authored
5 years ago
by
David Trattnig
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup and fixes.
parent
654ad051
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/communication/redis/adapter.py
+1
-2
1 addition, 2 deletions
modules/communication/redis/adapter.py
modules/scheduling/scheduler.py
+2
-2
2 additions, 2 deletions
modules/scheduling/scheduler.py
with
3 additions
and
4 deletions
modules/communication/redis/adapter.py
+
1
−
2
View file @
cd9f90f0
...
...
@@ -224,9 +224,8 @@ class ServerRedisAdapter(threading.Thread, RedisMessenger):
if
self
.
shutdown_event
.
is_set
():
return
self
.
shutdown_event
.
set
()
result
=
'
failed
'
try
:
result
=
self
.
socket
.
unbind
(
"
tcp://
"
+
self
.
ip
+
"
:
"
+
self
.
port
)
self
.
socket
.
unbind
(
"
tcp://
"
+
self
.
ip
+
"
:
"
+
self
.
port
)
except
:
pass
...
...
This diff is collapsed.
Click to expand it.
modules/scheduling/scheduler.py
+
2
−
2
View file @
cd9f90f0
...
...
@@ -130,7 +130,7 @@ class AuraScheduler(ExceptionLogger, threading.Thread):
def
run
(
self
):
"""
Called when thread is started via `start()`. It calls `self.fetch_new_program()`
Called when thread is started via `start()`. It calls `self.fetch_new_program
me
()`
periodically depending on the `fetching_frequency` define engine configuration.
"""
while
not
self
.
exit_event
.
is_set
():
...
...
@@ -202,7 +202,7 @@ class AuraScheduler(ExceptionLogger, threading.Thread):
programme_as_string
=
""
if
self
.
programme
is
None
or
len
(
self
.
programme
)
==
0
:
self
.
fetch_new_program
()
self
.
fetch_new_program
me
()
try
:
programme_as_string
=
json
.
dumps
([
p
.
_asdict
()
for
p
in
self
.
programme
],
default
=
alchemyencoder
)
...
...
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