You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: airbyte_cdk/sources/declarative/requesters/README.md
+14-3Lines changed: 14 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,19 @@
1
+
# Download Target and Download Requester
2
+
3
+
- The `creation_response` and `polling_response` interpolation contexts are always available during the job download step of the process.
4
+
5
+
- The`download_target` interpolation context is generated by the `download_target_extractor` and made available to the job download step as well.
6
+
- if `download_target_requester` is not provided, `download_target_extractor` will get urls from the `polling_response`
7
+
- if `download_target_requester` is provided, an additional request will be made to fetch job download targets and `download_target_extractor` will operate on that response
8
+
9
+
## Some important considerations
10
+
11
+
-**Note:** If the `download_target_extractor` and `download_target_requester` are not defined, a single job download request will be made without the `download_target` context.
12
+
-**Note:** The `download_target_extractor` is required (not optional) if using a `download_target_requester`
13
+
1
14
# AsyncHttpJobRepository sequence diagram
2
15
3
16
- Components marked as optional are not required and can be ignored.
4
-
- if `download_target_requester` is not provided, `download_target_extractor` will get urls from the `polling_response`
5
-
- interpolation_context, e.g. `creation_response` or `polling_response` can be obtained from stream_slice
yieldfromself.download_target_extractor.extract_records(url_response) # type: ignore # we expect download_target_extractor to always return list of strings
0 commit comments