[Q&A] Maintaining executor state across workflows #3306
-
Python version (
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
@ssingh-dual thanks for the question. There are two key concepts to understand here:
For your question: To achieve this, you simply need to configure the config_fed_server to use two or more SAG controllers. Here's an example configuration: In this configuration, you define two SAG workflows with different train_task_name values ( On the client side, you can use the same Executor for both tasks by specifying them in the tasks list. Here’s the corresponding client configuration: Notice that the task names ( Note: Since these workflows are part of the same job, the Executor instance will be the same across both tasks, allowing the same Executor to handle multiple tasks from different workflows. |
Beta Was this translation helpful? Give feedback.
@ssingh-dual thanks for the question.
There are two key concepts to understand here:
Server Side: The server side has Controllers that manage the workflow. In the case of SAG (Scatter and Gather), you can find an example of this here.
Client Side: The client side has Executors that receive corresponding tasks, execute them, and return the results.
For your question:
You want to use the same Executor on the client side across different SAG workflows, which is entirely feasible.
To achieve this, you simply need to configure the config_fed_server to use two or more SAG controllers. Here's an example configuration: