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
b0cb02f0
Commit
b0cb02f0
authored
5 years ago
by
David Trattnig
Browse files
Options
Downloads
Patches
Plain Diff
Fixed config path.
parent
b6c599f4
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
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
guru.py
+8
-2
8 additions, 2 deletions
guru.py
with
9 additions
and
3 deletions
.gitlab-ci.yml
+
1
−
1
View file @
b0cb02f0
...
...
@@ -13,7 +13,7 @@ before_script:
-
pip3 install -r requirements.txt
-
mkdir /etc/aura
-
mkdir /var/log/aura
-
cp
.
/configuration/sample.engine.ini
.
/configuration/engine.ini
-
cp
$CI_PROJECT_DIR
/configuration/sample.engine.ini
CI_PROJECT_DIR
/configuration/engine.ini
simple_guru_help
:
stage
:
test
...
...
This diff is collapsed.
Click to expand it.
guru.py
+
8
−
2
View file @
b0cb02f0
...
...
@@ -28,6 +28,7 @@ import time
import
sys
import
redis
from
pathlib
import
Path
from
argparse
import
ArgumentParser
# own libs
...
...
@@ -37,7 +38,11 @@ from libraries.base.config import AuraConfig
class
Guru
():
config
=
AuraConfig
(
"
/etc/aura/engine.ini
"
)
"""
Command Line Interface (CLI) for Aura Engine.
"""
config_path
=
"
%s/configuration/engine.ini
"
%
Path
(
__file__
).
parent
.
absolute
()
config
=
AuraConfig
(
config_path
)
parser
=
None
args
=
None
...
...
@@ -63,7 +68,7 @@ class Guru():
else
:
print
(
""
)
exit
(
4
)
except
redis
.
exceptions
.
TimeoutError
as
te
:
except
redis
.
exceptions
.
TimeoutError
:
print
(
"
Timeout when waiting for redis message. Is AURA daemon running? Exiting...
"
)
exit
(
3
)
...
...
@@ -146,6 +151,7 @@ def valid_playlist_entry(argument):
return
index
,
fromtime
,
source
except
:
msg
=
"
Not a valid date:
'
{0}
'
.
"
.
format
(
argument
[
0
])
print
(
msg
)
raise
...
...
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