https://prefect.io logo
Title
j

Jinnzy

02/01/2023, 9:18 AM
Hi, I use ignore_file to ignore large files does not work
flow = Deployment.build_from_flow(
            flow=fusionist_flow,
            name=f"fusionist-{i}",
            schedule=(IntervalSchedule(
                interval=timedelta(hours=24).total_seconds(),
                timezone="Asia/Shanghai",
                anchor_date=pendulum.now().add(seconds=15),
            )),
            parameters={"account_index": i},
            work_queue_name="browser",
            ignore_file=".prefectignore"
        )
        flow.apply()

cat .prefectignore
venv
web
c

Christopher Boyd

02/01/2023, 3:59 PM
can you clarify what you mean? the .prefectignore is for when you run a deployment apply - what about it doesn’t work here?
what is being uploaded that shouldn’t?