Giacomo Chiarella
07/05/2024, 10:51 AMNate
07/05/2024, 12:12 PMcreated
and updated
fields like this
In [1]: from prefect import get_client
In [2]: async with get_client() as client:
...: deployment = await client.read_deployment("<some UUID>")
...:
In [3]: deployment
Out[3]: DeploymentResponse(...)
In [4]: deployment.updated
Out[4]: DateTime(2024, 3, 7, 2, 5, 49, 730749, tzinfo=Timezone('UTC'))
Giacomo Chiarella
07/05/2024, 12:43 PMGiacomo Chiarella
07/05/2024, 12:44 PMNate
07/05/2024, 12:55 PMGiacomo Chiarella
07/05/2024, 12:56 PMNate
07/05/2024, 12:58 PMupdated
then a variable seems simplest to meGiacomo Chiarella
07/05/2024, 12:58 PMNate
07/05/2024, 12:59 PMdict[str, datetime]
Giacomo Chiarella
07/05/2024, 1:00 PM