initial stage
This commit is contained in:
parent
6aa4108b2d
commit
f6fbce36e1
|
@ -88,12 +88,11 @@ def import_EOSC_catalog():
|
|||
|
||||
num_batches = len(pieces)//kwargs["params"]["BATCH_LOADERS_NUM"]
|
||||
if num_batches > 0:
|
||||
return list(split_list(pieces, num_batches))
|
||||
return list(split_list(pieces, len(pieces)))
|
||||
return [*split_list(pieces, num_batches)]
|
||||
return [*split_list(pieces, len(pieces))]
|
||||
|
||||
@task
|
||||
def bulk_load(**kwargs):
|
||||
files = kwargs["files"]
|
||||
def bulk_load(files: list[(str, str)], **kwargs):
|
||||
conn = BaseHook.get_connection(kwargs["params"]["OPENSEARCH_CONN_ID"])
|
||||
client = OpenSearch(
|
||||
hosts=[{'host': conn.host, 'port': conn.port}],
|
||||
|
|
Loading…
Reference in New Issue