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
fe8a775f
Commit
fe8a775f
authored
1 year ago
by
Mohammad Torkashvand
Browse files
Options
Downloads
Patches
Plain Diff
pass tests
parent
9ae367ad
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!101
Added celery worker and celery beat
Pipeline
#84461
failed
1 year ago
Stage: tox
Stage: documentation
Stage: sonarqube
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gso/__init__.py
+3
-6
3 additions, 6 deletions
gso/__init__.py
with
3 additions
and
6 deletions
gso/__init__.py
+
3
−
6
View file @
fe8a775f
import
typer
from
orchestrator
import
OrchestratorCore
from
orchestrator
import
OrchestratorCore
,
app_settings
from
orchestrator.cli.main
import
app
as
cli_app
from
orchestrator.settings
import
AppSettings
import
gso.products
# noqa: F401
import
gso.workflows
# noqa: F401
from
gso.api
import
router
as
api_router
from
gso.cli
import
netbox
base_settings
=
AppSettings
()
# TODO check if this is correct
def
init_gso_app
()
->
OrchestratorCore
:
app
=
OrchestratorCore
(
base_settings
=
base
_settings
)
app
=
OrchestratorCore
(
base_settings
=
app
_settings
)
app
.
include_router
(
api_router
,
prefix
=
"
/api
"
)
return
app
def
init_worker_app
()
->
OrchestratorCore
:
return
OrchestratorCore
(
base_settings
=
base
_settings
)
return
OrchestratorCore
(
base_settings
=
app
_settings
)
def
init_cli_app
()
->
typer
.
Typer
:
...
...
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