Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pulsar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
NDIP
Pulsar
Commits
da086c90
Commit
da086c90
authored
5 years ago
by
John Chilton
Browse files
Options
Downloads
Patches
Plain Diff
Toward new Galaxy library structure...
parent
74229837
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
pulsar/client/test/check.py
+8
-2
8 additions, 2 deletions
pulsar/client/test/check.py
pulsar/core.py
+12
-2
12 additions, 2 deletions
pulsar/core.py
pulsar/managers/stateful.py
+7
-2
7 additions, 2 deletions
pulsar/managers/stateful.py
with
27 additions
and
6 deletions
pulsar/client/test/check.py
+
8
−
2
View file @
da086c90
...
@@ -17,8 +17,14 @@ import traceback
...
@@ -17,8 +17,14 @@ import traceback
from
collections
import
namedtuple
from
collections
import
namedtuple
from
io
import
open
from
io
import
open
from
galaxy.tools.deps.dependencies
import
DependenciesDescription
try
:
from
galaxy.tools.deps.requirements
import
ToolRequirement
# If galaxy-lib or Galaxy 19.05 present.
from
galaxy.tools.deps.dependencies
import
DependenciesDescription
from
galaxy.tools.deps.requirements
import
ToolRequirement
except
ImportError
:
# If galaxy-tool-util or Galaxy 19.09 present.
from
galaxy.tool_util.deps.dependencies
import
DependenciesDescription
from
galaxy.tool_util.deps.requirements
import
ToolRequirement
from
six
import
binary_type
from
six
import
binary_type
from
pulsar.client
import
(
from
pulsar.client
import
(
...
...
This diff is collapsed.
Click to expand it.
pulsar/core.py
+
12
−
2
View file @
da086c90
...
@@ -9,8 +9,18 @@ from pulsar.tools import ToolBox
...
@@ -9,8 +9,18 @@ from pulsar.tools import ToolBox
from
pulsar.tools.authorization
import
get_authorizer
from
pulsar.tools.authorization
import
get_authorizer
from
pulsar
import
messaging
from
pulsar
import
messaging
from
galaxy.objectstore
import
build_object_store_from_config
from
galaxy.objectstore
import
build_object_store_from_config
from
galaxy.tools.deps
import
DependencyManager
try
:
from
galaxy.jobs.metrics
import
JobMetrics
# If galaxy-lib or Galaxy <19.05 present.
from
galaxy.tools.deps
import
DependencyManager
except
ImportError
:
# If galaxy-tool-util or Galaxy >=19.09 present.
from
galaxy.tool_util.deps
import
DependencyManager
try
:
# If galaxy-lib or Galaxy <19.05 present.
from
galaxy.jobs.metrics
import
JobMetrics
except
ImportError
:
# If galaxy-job-metrics or Galaxy >=19.09 present.
from
galaxy.job_metrics
import
JobMetrics
from
galaxy.util.bunch
import
Bunch
from
galaxy.util.bunch
import
Bunch
from
logging
import
getLogger
from
logging
import
getLogger
...
...
This diff is collapsed.
Click to expand it.
pulsar/managers/stateful.py
+
7
−
2
View file @
da086c90
...
@@ -6,7 +6,12 @@ import os
...
@@ -6,7 +6,12 @@ import os
import
time
import
time
import
threading
import
threading
from
galaxy.tools.deps
import
dependencies
try
:
# If galaxy-lib or Galaxy 19.05 present.
from
galaxy.tools.deps.dependencies
import
DependenciesDescription
except
ImportError
:
# If galaxy-tool-util or Galaxy 19.09 present.
from
galaxy.tool_util.deps.dependencies
import
DependenciesDescription
from
pulsar.client.util
import
filter_destination_params
from
pulsar.client.util
import
filter_destination_params
from
pulsar.managers
import
ManagerProxy
from
pulsar.managers
import
ManagerProxy
...
@@ -109,7 +114,7 @@ class StatefulManagerProxy(ManagerProxy):
...
@@ -109,7 +114,7 @@ class StatefulManagerProxy(ManagerProxy):
yield
yield
launch_kwds
=
{}
launch_kwds
=
{}
if
launch_config
.
get
(
"
dependencies_description
"
):
if
launch_config
.
get
(
"
dependencies_description
"
):
dependencies_description
=
dependencies
.
DependenciesDescription
.
from_dict
(
launch_config
[
"
dependencies_description
"
])
dependencies_description
=
DependenciesDescription
.
from_dict
(
launch_config
[
"
dependencies_description
"
])
launch_kwds
[
"
dependencies_description
"
]
=
dependencies_description
launch_kwds
[
"
dependencies_description
"
]
=
dependencies_description
for
kwd
in
[
"
submit_params
"
,
"
setup_params
"
,
"
env
"
]:
for
kwd
in
[
"
submit_params
"
,
"
setup_params
"
,
"
env
"
]:
if
kwd
in
launch_config
:
if
kwd
in
launch_config
:
...
...
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