https://dagster.io/ logo
#ask-community
Title
# ask-community
p

phương đinh

05/17/2022, 4:02 AM
Hi, is there any way to run a backfill with run_config ? i dont see it in UI or CLI, thanks
j

jamie

05/17/2022, 3:41 PM
Hey @phương đinh. when you submit a backfill of a partition the run_config is generated from the partition you defined So if you had this partition
Copy code
@daily_partitioned_config(start_date=datetime(2020, 1, 1))
def my_partitioned_config(start: datetime, _end: datetime):
    return {
        "ops": {
            "process_data_for_date": {"config": {"date": start.strftime("%Y-%m-%d")}}
        }
    }
And ran a backfill of the dates 5/14/22 and 5/15/22 you would get the run configs that would be generated from
my_partitioned_config(start_date=datetime(2022, 5, 14), _end: datetime(2022, 5, 15))
and
my_partitioned_config(start_date=datetime(2022, 5, 15), _end=datetime(2022, 5, 16))
5 Views