Skip to content

Commit

Permalink
add dask to launcher job type list
Browse files Browse the repository at this point in the history
  • Loading branch information
Nanguage committed May 10, 2023
1 parent 3109034 commit e9cf16d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion executor/engine/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from .core import Engine, EngineSetting
from .job import LocalJob, ThreadJob, ProcessJob

__version__ = '0.1.7'
__version__ = '0.1.8'

__all__ = [
'Engine', 'EngineSetting',
Expand Down
9 changes: 8 additions & 1 deletion executor/engine/launcher/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,15 @@
}


try:
from ..job.dask import DaskJob
job_type_classes['dask'] = DaskJob
except ImportError:
pass


JOB_TYPES = T.Literal[
'local', 'thread', 'process',
'local', 'thread', 'process', 'dask',
'subprocess', 'webapp'
]

Expand Down

0 comments on commit e9cf16d

Please sign in to comment.