-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(daemon): remote flow with parallel>1 (#3469)
* test(daemon): remote flow with parallel>1 * fix(daemon): remote flow with parallel>1 * fix(daemon): set workspace 3475 * fix: add grpc data runtime
- Loading branch information
1 parent
707b7aa
commit 48285d1
Showing
11 changed files
with
137 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from jina import Executor, requests, DocumentArray | ||
|
||
|
||
class WorkspaceValidator(Executor): | ||
@requests | ||
def foo(self, docs: DocumentArray, *args, **kwargs): | ||
docs[0].text = self.workspace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
jtype: Flow | ||
version: 1 | ||
with: | ||
port_expose: 9000 | ||
protocol: http | ||
executors: | ||
- name: local | ||
parallel: $PARALLEL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
jtype: Flow | ||
version: 1 | ||
with: | ||
port_expose: 9000 | ||
protocol: http | ||
executors: | ||
- name: local1 | ||
parallel: $PARALLEL | ||
- name: local2 | ||
parallel: $PARALLEL |
9 changes: 9 additions & 0 deletions
9
tests/distributed/test_topologies/yamls/flow_workspace_validate.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
jtype: Flow | ||
version: 1 | ||
with: | ||
port_expose: 9000 | ||
protocol: http | ||
executors: | ||
- name: local | ||
uses: WorkspaceValidator | ||
py_module: executor.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters