TJaniF commented on issue #48411: URL: https://github.com/apache/airflow/issues/48411#issuecomment-2757054411
> Oh I know the problem now, this is actually intended. The syntax is different between `@asset` and `@task` because we use the arguments differently. You should do this instead: > > @asset(schedule="@daily") > def access_context_asset(context): # <-- No '**' > print(context["dag_run"].run_after) > Maybe we should add a rule to make `*` and `**` fail on `@asset` at parse time instead. They don’t make much sense there. Good to know, thank you! And yes, making it fail with unpacking is a good idea, I assume I am not the only one who would assume it works the same with ** and be led astray 😅 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
