File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
airbyte_cdk/sources/declarative/retrievers Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -49,16 +49,22 @@ def exit_on_rate_limit(self) -> bool:
49
49
- If the `creation_requester` can place / create the job - it means all other requesters should successfully manage
50
50
to complete the results.
51
51
"""
52
- return self .stream_slicer ._job_orchestrator ._job_repository .creation_requester .exit_on_rate_limit # type: ignore[return-value]
52
+ job_orchestrator = self .stream_slicer ._job_orchestrator
53
+ if job_orchestrator is None :
54
+ # Default value when orchestrator is not available
55
+ return False
56
+ return job_orchestrator ._job_repository .creation_requester .exit_on_rate_limit # type: ignore
53
57
54
58
@exit_on_rate_limit .setter
55
59
def exit_on_rate_limit (self , value : bool ) -> None :
56
60
"""
57
61
Sets the `exit_on_rate_limit` property of the job repository > creation_requester,
58
62
meaning that the Job cannot be placed / created if the rate limit is reached.
59
- Thus no futher work on managing jobs is expected to be done.
63
+ Thus no further work on managing jobs is expected to be done.
60
64
"""
61
- self .stream_slicer ._job_orchestrator ._job_repository .creation_requester .exit_on_rate_limit = value # type: ignore[assignment]
65
+ job_orchestrator = self .stream_slicer ._job_orchestrator
66
+ if job_orchestrator is not None :
67
+ job_orchestrator ._job_repository .creation_requester .exit_on_rate_limit = value # type: ignore[attr-defined, assignment]
62
68
63
69
@property
64
70
def state (self ) -> StreamState :
You can’t perform that action at this time.
0 commit comments