@@ -73,7 +73,7 @@ def convert_null_to_default_cluster_id(cls, v):
7373 @classmethod
7474 def ensure_utc (cls , v : datetime .datetime | None ) -> datetime .datetime | None :
7575 if v is not None and v .tzinfo is None :
76- v = v .replace (tzinfo = datetime .timezone . utc )
76+ v = v .replace (tzinfo = datetime .UTC )
7777 return v
7878
7979 @validator ("metadata" , pre = True )
@@ -94,6 +94,18 @@ class Config:
9494 "user_id" : 132 ,
9595 "cluster_id" : 0 ,
9696 "iteration" : 42 ,
97+ "result" : "UNKNOWN" ,
98+ "created" : "2021-03-01 13:07:34.19161" ,
99+ "modified" : "2021-03-01 13:07:34.19161" ,
100+ "cancelled" : None ,
101+ "use_on_demand_clusters" : False ,
102+ },
103+ {
104+ "run_id" : 432 ,
105+ "project_uuid" : "65fee9d2-e030-452c-a29c-45d288577ca5" ,
106+ "user_id" : 132 ,
107+ "cluster_id" : None , # this default to DEFAULT_CLUSTER_ID
108+ "iteration" : 42 ,
97109 "result" : "NOT_STARTED" ,
98110 "created" : "2021-03-01 13:07:34.19161" ,
99111 "modified" : "2021-03-01 13:07:34.19161" ,
@@ -121,5 +133,20 @@ class Config:
121133 },
122134 "use_on_demand_clusters" : False ,
123135 },
136+ {
137+ "run_id" : 43243 ,
138+ "project_uuid" : "65fee9d2-e030-452c-a29c-45d288577ca5" ,
139+ "user_id" : 132 ,
140+ "cluster_id" : 123 ,
141+ "iteration" : 12 ,
142+ "result" : "SUCCESS" ,
143+ "created" : "2021-03-01 13:07:34.19161" ,
144+ "modified" : "2021-03-01 13:07:34.19161" ,
145+ "started" : "2021-03-01 8:07:34.19161" ,
146+ "ended" : "2021-03-01 13:07:34.10" ,
147+ "cancelled" : None ,
148+ "metadata" : None ,
149+ "use_on_demand_clusters" : False ,
150+ },
124151 ]
125152 }
0 commit comments