批处理源支持重试失败的数据流运行。 您只能重试失败的数据流运行。
本教程介绍了有关如何使用重试失败的数据流运行的步骤 Flow Service API.
本教程要求您实际了解Adobe Experience Platform的以下组件:
有关如何成功调用Platform API的信息,请参阅 Platform API快速入门.
要重试失败的数据流运行,请POST请求 /runs
端点,同时提供数据流的运行ID和 re-trigger
操作作为查询参数的一部分。
API格式
POST /runs/{RUN_ID}/action?op=re-trigger
参数 | 描述 |
---|---|
{RUN_ID} |
与要重试的数据流运行对应的运行ID。 |
op |
确定要执行的操作的操作。 要重试失败的数据流运行,必须指定 re-trigger 作为你的行动。 |
请求
以下请求将重试为运行ID运行的数据流 4fb0418e-1804-45d6-8d56-dd51f05c0baf
.
curl -X POST \
'https://platform.adobe.io/data/foundation/flowservice/runs/4fb0418e-1804-45d6-8d56-dd51f05c0baf/action?op=re-trigger' \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H 'x-sandbox-name: {SANDBOX_NAME}' \
-H 'Content-Type: application/json'
响应
成功的响应将返回新创建的流运行ID及其对应的etag版本。
{
"id": "3fb0418e-1804-45d6-8d56-dd51f05c0baf",
"etag": "\"1100c53e-0000-0200-0000-627138980000\""
}