GitHub user aglebov created a discussion: Timezone-aware schedule with @asset 
decorator

I'm trying to use this example from 
https://airflow.apache.org/docs/apache-airflow/stable/authoring-and-scheduling/assets.html#dependency-between-asset-task-and-classic-operators
 to define an asset together with a BashOperator that creates it:
```
@asset(schedule=None)
@task.bash(retries=3)
def example_asset():
    """Write to example_asset, from a Bash task with 3 retries..."""
    return "echo 'run'"
```
I'd like to specify a schedule, e.g. `0 9 * * *`, with a timezone. In an 
explicit DAG definition, this could be achieved with
```
DAG(
    dag_id='my_dag',
    start_date=pendulum.datetime(2026, 2, 15, 
tzinfo=pendulum.timezone('Europe/London')),
    schedule='0 9 * * *',
)
```
however `@asset` does not seem to accept `start_date` as an argument. Is there 
another way to achieve this with `@asset`?

GitHub link: https://github.com/apache/airflow/discussions/61940

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to