Dimosthenis Schizas
02/07/2021, 12:19 AMauction_date = Parameter(
"auction_date", default=prefect.context.date.date()
)
I get the following error message when trying to register:
AttributeError: 'Context' object has no attribute 'date'
I am missing something hereAmanda Wee
02/07/2021, 12:21 AMNone
default, then pass it to a task that returns the actual date to use, i.e., the parameter value if it is not None
, otherwise the current date.Dimosthenis Schizas
02/07/2021, 12:31 AMNone
and calling a task, which unfortunately never returns the current data.
from_date = Parameter("from_date", default=None)