File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
sdk/python/feast/infra/online_stores/contrib/cassandra_online_store Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -329,18 +329,22 @@ def __del__(self):
329
329
you can't use the session object anymore.
330
330
You'd get a RuntimeError "cannot schedule new futures after shutdown".
331
331
"""
332
- print (
333
- f"{ get_current_time_in_ms ()} Calling CassandraOnlineStore __del__() method"
334
- )
332
+ print ("Calling CassandraOnlineStore __del__() method" )
335
333
if self ._session :
336
334
if not self ._session .is_shutdown :
337
335
self ._session .shutdown ()
338
- print (f"{ get_current_time_in_ms ()} Session is shutdown" )
336
+ current_time_in_ms = datetime .now ().strftime ("%Y-%m-%d %H:%M:%S.%f" )[
337
+ :- 3
338
+ ]
339
+ print (f"{ current_time_in_ms } Session is shutdown" )
339
340
340
341
if self ._cluster :
341
342
if not self ._cluster .is_shutdown :
342
343
self ._cluster .shutdown ()
343
- print (f"{ get_current_time_in_ms ()} Cluster is shutdown" )
344
+ current_time_in_ms = datetime .now ().strftime ("%Y-%m-%d %H:%M:%S.%f" )[
345
+ :- 3
346
+ ]
347
+ print (f"{ current_time_in_ms } Cluster is shutdown" )
344
348
345
349
def online_write_batch_connector (
346
350
self ,
You can’t perform that action at this time.
0 commit comments