Thomas Karbe
06/08/2024, 8:52 AMMichal Hauzírek
06/08/2024, 1:12 PMPOST /gdc/projects/SERVICE_WORKSPACE_ID/schedules/SCHEDULE_ID/executions
with payload:
{
"execution": {
"params": {
"GDC_DATALOAD_SINGLE_RUN_LOAD_MODE": "FULL"
}
}
}
Should cause all the datasets within the segment to be loaded with full load.
You can be even more granular and use CUSTOM mode and define which datasets should be loaded and in what mode:
{
"execution": {
"params": {
"GDC_DATALOAD_SINGLE_RUN_LOAD_MODE": "CUSTOM",
"GDC_DATALOAD_DATASETS": "[{\"dataset\":\"dataset.product\",\"uploadMode\":\"FULL\"},{\"dataset\":\"dataset.order\",\"uploadMode\":\"DEFAULT\"}]"
}
}
}
note that the value of GDC_DATALOAD_DATASETS is a string and it contains a JSON so the double quotes there need to be escaped.
If you do not want to execute the load to the whole segment, you can use GDC_TARGET_PROJECTS and specify for which workspaces it should be executed:
{
"execution": {
"params": {
"GDC_DATALOAD_SINGLE_RUN_LOAD_MODE": "CUSTOM",
"GDC_TARGET_PROJECTS": "mfrk2ybq0wjbqtokngb8rw39qkctnrnr,m4oufjgxx1jrm1z1vrddf454aybrsdsj",
"GDC_DATALOAD_DATASETS": "[{\"dataset\":\"dataset.product\",\"uploadMode\":\"FULL\"},{\"dataset\":\"dataset.order\",\"uploadMode\":\"DEFAULT\"}]"
}
}
}
(note that in the GDC_TARGET_PROJECTS you need to use the workspace IDs (not LCM client_ids).
An alternative option could be to just purge the data in your datasets as mentioned here - the next regular load should perform a full load. The disadvantage is obviously that until the load finishes, there are no data.Thomas Karbe
06/08/2024, 1:16 PM