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

Nicholas Pezolano

01/17/2023, 4:41 PM
Is there a good way to pass a true / false flag from the website to an asset? EX id like to be able to backfill and pass an overwrite flag if needed:
Copy code
@asset(partitions_def=partitions_def)
def some_task(context):
    some_s3_task(context.partition_key,  overwrite=False)
    return True
c

chris

01/17/2023, 10:38 PM
you would probably want to do this via config
n

Nicholas Pezolano

01/17/2023, 10:41 PM
So the process would be set overwrite to True in the config, then backfill the specific dates, then set overwrite back to false?
c

chris

01/17/2023, 10:43 PM
I am forgetting if we allow you to specify config using the backfill UI, but if we do not allow that, then yes
n

Nicholas Pezolano

01/17/2023, 10:52 PM
Yeah it looks like you can only view the config from the UI locally, from the examples on the docs it looks like you can change them from the cloud website.