subkanthi commented on a change in pull request #20271:
URL: https://github.com/apache/airflow/pull/20271#discussion_r768784219
##########
File path: airflow/providers/airbyte/sensors/airbyte.py
##########
@@ -54,7 +54,7 @@ def __init__(
def poke(self, context: dict) -> bool:
hook = AirbyteHook(airbyte_conn_id=self.airbyte_conn_id,
api_version=self.api_version)
- job = hook.get_job(job_id=self.airbyte_job_id)
+ job = hook.get_job(job_id=int(self.airbyte_job_id))
Review comment:
done.
##########
File path: airflow/providers/airbyte/hooks/airbyte.py
##########
@@ -46,12 +46,12 @@ class AirbyteHook(HttpHook):
ERROR = "error"
INCOMPLETE = "incomplete"
- def __init__(self, airbyte_conn_id: str = "airbyte_default", api_version:
Optional[str] = "v1") -> None:
+ def __init__(self, airbyte_conn_id: str = "airbyte_default", api_version:
str = "v1") -> None:
super().__init__(http_conn_id=airbyte_conn_id)
self.api_version: str = api_version
def wait_for_job(
- self, job_id: str, wait_seconds: Optional[float] = 3, timeout:
Optional[float] = 3600
+ self, job_id: str, wait_seconds: float = 3, timeout: Optional[float] =
3600
Review comment:
changed, thanks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]