Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pypelines
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
HaissLab
Data Management
Pypelines
Commits
af99d806
Commit
af99d806
authored
1 year ago
by
Timothe Jost
Browse files
Options
Downloads
Patches
Plain Diff
test
parent
ef8b1536
No related branches found
No related tags found
No related merge requests found
Pipeline
#127178
passed
1 year ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/pypelines/__init__.py
+1
-1
1 addition, 1 deletion
src/pypelines/__init__.py
src/pypelines/celery_tasks.py
+9
-5
9 additions, 5 deletions
src/pypelines/celery_tasks.py
with
10 additions
and
6 deletions
src/pypelines/__init__.py
+
1
−
1
View file @
af99d806
__version__
=
"
0.0.3
5
"
__version__
=
"
0.0.3
6
"
from
.
import
loggs
from
.
import
loggs
from
.pipes
import
*
from
.pipes
import
*
...
...
This diff is collapsed.
Click to expand it.
src/pypelines/celery_tasks.py
+
9
−
5
View file @
af99d806
...
@@ -280,7 +280,7 @@ class LogTask:
...
@@ -280,7 +280,7 @@ class LogTask:
self
.
logger
.
removeHandler
(
self
.
logger
.
handlers
[
-
1
])
self
.
logger
.
removeHandler
(
self
.
logger
.
handlers
[
-
1
])
def
create_celery_app
(
conf_path
,
app_name
=
"
pypelines
"
,
v_host
=
None
)
->
"
Celery
"
:
def
create_celery_app
(
conf_path
,
app_name
=
"
pypelines
"
,
v_host
=
None
)
->
"
Celery
| None
"
:
failure_message
=
(
failure_message
=
(
f
"
Celery app :
{
app_name
}
failed to be created.
"
f
"
Celery app :
{
app_name
}
failed to be created.
"
...
@@ -350,10 +350,14 @@ def create_celery_app(conf_path, app_name="pypelines", v_host=None) -> "Celery":
...
@@ -350,10 +350,14 @@ def create_celery_app(conf_path, app_name="pypelines", v_host=None) -> "Celery":
APPLICATIONS_STORE
[
app_name
]
=
app
APPLICATIONS_STORE
[
app_name
]
=
app
app
.
register_task
(
handshake
)
from
celery
import
Task
return
app
class
handshake
(
Task
):
name
=
"
handshake
"
def
run
(
self
):
return
f
"
{
node
()
}
is happy to shake your hand and says hello !
"
def
handshake
():
app
.
register_task
(
handshake
)
return
f
"
{
node
()
}
is happy to shake your hand and says hello !
"
return
app
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