Publication dateMar 9, 2022
Confidentiality public Public
Send a scenario to a lab
TASK
timer
2 minutes, 42 seconds
Typing name : TASK.gws_core.SendScenarioToLab Brick : gws_core Send a scenario to another lab using lab credentials
Task to send a scenario to another lab using lab credentials.
This task instructs the destination lab to import the scenario from the source lab
using credential-based authentication.
A credentials of type lab are required in both labs to be able to send and receive scenarios. It
needs to be the same api_key in both labs.
When auto_run is enabled, the create_option is forced to "Update if exists" so the
scenario keeps the same ID. The auto_run flag is passed to the destination's downloader
which will automatically run the scenario after import. The task does NOT unmark the
scenario — downstream tasks (WaitExternalScenario) handle unmarking.
The following documentation explain how to configure the lab credentials:
https://constellab.community/bricks/gws_academy/latest/doc/data-lab/scenario/f4453296-ccc5-4b54-8e46-2d1c2f830a0c#send-a-scenario-to-another-lab-(e.g.-a-datahub)
login
Input
Scenario to send
Scenario to send, it must not be running
logout
Output
Scenario
Scenario resource
settings
Configuration
The lab to send the scenario to (must have credentials configured)
Type : lab_model_paramMode for downloading resource of the scenario
Type : select_paramDefault value : AutoThis applies for the scenario and the resources
Type : select_paramDefault value : Update if existsIf true, the scenario will be automatically run in the destination lab
Type : boolTechnical bricks to reuse or customize Have you developed a brick?
Share it to accelerate projects for the entire community.