Skip to content

Commit

Permalink
add backward compatibility with dflow (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz authored Nov 17, 2023
1 parent ec84d6e commit 038ced7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Empty file.
7 changes: 7 additions & 0 deletions dpdispatcher/dpcloudserver/client.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"""Provide backward compatbility with dflow."""

from dpdispatcher.utils.dpcloudserver.client import RequestInfoException

__all__ = [
"RequestInfoException",
]
3 changes: 3 additions & 0 deletions tests/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
from dpdispatcher.contexts.lazy_local_context import LazyLocalContext # noqa: F401
from dpdispatcher.contexts.local_context import LocalContext # noqa: F401
from dpdispatcher.contexts.ssh_context import SSHContext, SSHSession # noqa: F401

# test backward compatibility with dflow
from dpdispatcher.dpcloudserver.client import RequestInfoException as _ # noqa: F401
from dpdispatcher.entrypoints.submission import handle_submission # noqa: F401
from dpdispatcher.machine import Machine # noqa: F401
from dpdispatcher.machines.distributed_shell import DistributedShell # noqa: F401
Expand Down

0 comments on commit 038ced7

Please sign in to comment.