Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
bob.pipelines
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bob
bob.pipelines
Commits
29a970c8
Commit
29a970c8
authored
Dec 09, 2020
by
Amir MOHAMMADI
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[dask][scheduler names] use dask to get their names
parent
17a39fe3
Pipeline
#46435
failed with stage
in 3 minutes and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
bob/pipelines/distributed/__init__.py
bob/pipelines/distributed/__init__.py
+14
-1
No files found.
bob/pipelines/distributed/__init__.py
View file @
29a970c8
...
...
@@ -15,7 +15,20 @@ __path__ = extend_path(__path__, __name__)
# cls=ResourceOption,
# )
VALID_DASK_CLIENT_STRINGS
=
(
"single-threaded"
,
"sync"
,
"threaded"
,
"processes"
)
try
:
import
dask
VALID_DASK_CLIENT_STRINGS
=
dask
.
base
.
named_schedulers
except
(
ModuleNotFoundError
,
ImportError
):
VALID_DASK_CLIENT_STRINGS
=
(
"sync"
,
"synchronous"
,
"single-threaded"
,
"threads"
,
"threading"
,
"processes"
,
"multiprocessing"
,
)
def
dask_get_partition_size
(
cluster
,
n_objects
,
lower_bound
=
200
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment