-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Commit
Part of #19891
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,10 +62,10 @@ def __init__( | |
*, | ||
job_name: str = 'aws_glue_default_job', | ||
job_desc: str = 'AWS Glue Job with Airflow', | ||
script_location: Optional[str] = None, | ||
script_location: str, | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
potiuk
Author
Member
|
||
concurrent_run_limit: Optional[int] = None, | ||
script_args: Optional[dict] = None, | ||
retry_limit: Optional[int] = None, | ||
retry_limit: int = 0, | ||
num_of_dpus: int = 6, | ||
aws_conn_id: str = 'aws_default', | ||
region_name: Optional[str] = None, | ||
|
@@ -100,7 +100,7 @@ def execute(self, context: 'Context'): | |
:return: the id of the current glue job. | ||
""" | ||
if self.script_location and not self.script_location.startswith(self.s3_protocol): | ||
This comment has been minimized.
Sorry, something went wrong.
JorgenG
|
||
if not self.script_location.startswith(self.s3_protocol): | ||
s3_hook = S3Hook(aws_conn_id=self.aws_conn_id) | ||
script_name = os.path.basename(self.script_location) | ||
s3_hook.load_file( | ||
|
This is wrong and should be reverted! We need to be able to pass None and some static checker is not allowing it.
See conversation below too