We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb4d625 commit cc9ab95Copy full SHA for cc9ab95
scrapegraph-py/scrapegraph_py/async_client.py
@@ -253,11 +253,12 @@ def new_id(prefix: str) -> str:
253
"next_run_at": "2024-01-08T09:00:00Z"
254
}
255
elif "/trigger" in path:
256
+ task_id = new_id("mock-task")
257
return {
- "execution_id": new_id("mock-task"),
258
+ "execution_id": task_id,
259
"scheduled_job_id": new_id("mock-job"),
260
"triggered_at": "2024-01-01T00:00:00Z",
- "message": f"Job triggered successfully. Task ID: {new_id('mock-task')}"
261
+ "message": f"Job triggered successfully. Task ID: {task_id}"
262
263
# All other POST endpoints return a request id
264
return {"request_id": new_id("mock-req")}
0 commit comments