Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GÉANT Service Orchestrator
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
GÉANT Orchestration and Automation Team
GAP
GÉANT Service Orchestrator
Commits
125d86b9
Commit
125d86b9
authored
6 months ago
by
Mohammad Torkashvand
Browse files
Options
Downloads
Patches
Plain Diff
remove unnceccessary OrchestratorApp in worker mode
parent
47eb35e8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!282
remove unnecessary OrchestratorApp in worker mode
Pipeline
#89561
passed
6 months ago
Stage: tox
Stage: documentation
Stage: sonarqube
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gso/__init__.py
+0
-5
0 additions, 5 deletions
gso/__init__.py
gso/worker.py
+1
-3
1 addition, 3 deletions
gso/worker.py
with
1 addition
and
8 deletions
gso/__init__.py
+
0
−
5
View file @
125d86b9
...
...
@@ -54,11 +54,6 @@ def init_gso_app() -> OrchestratorCore:
return
app
def
init_worker_app
()
->
OrchestratorCore
:
"""
Initialise a :term:`GSO` instance as Celery worker.
"""
return
OrchestratorCore
(
base_settings
=
app_settings
)
def
init_cli_app
()
->
typer
.
Typer
:
"""
Initialise :term:`GSO` as a CLI application.
"""
from
gso.cli
import
imports
,
netbox
# noqa: PLC0415
...
...
This diff is collapsed.
Click to expand it.
gso/worker.py
+
1
−
3
View file @
125d86b9
...
...
@@ -16,7 +16,7 @@ from orchestrator.websocket.websocket_manager import WebSocketManager
from
orchestrator.workflows
import
ALL_WORKFLOWS
from
structlog
import
get_logger
from
gso
import
gso_initialise_celery
,
init_worker_app
from
gso
import
gso_initialise_celery
from
gso.settings
import
load_oss_params
logger
=
get_logger
(
__name__
)
...
...
@@ -67,8 +67,6 @@ class OrchestratorWorker(Celery):
products
=
len
(
SUBSCRIPTION_MODEL_REGISTRY
.
values
()),
)
init_worker_app
()
def
close
(
self
)
->
None
:
"""
Close Celery worker cleanly.
"""
super
().
close
()
...
...
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