ARun
09/09/2020, 2:17 PMfiles = []
for file in os.listdir(path):
    files.append(path+file)
@task
def run_file(file):
    with open(file) as f:
        line = f.readline()
        name = f.name
        sql = ""
        for _, line in enumerate(f):
            sql += line
            if line.rstrip().endswith(";"):
                query.run(query=sql)
                sql = ""
with Flow("parallelfiles") as flow:
    apply_map(run_file, files)
flow.register(project_name="test")josh
09/09/2020, 2:24 PMARun
09/09/2020, 2:32 PMjosh
09/09/2020, 2:36 PMARun
09/09/2020, 2:38 PMjosh
09/09/2020, 2:39 PM