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 @@ -332,18 +332,22 @@ def __del__(self):
332
332
you can't use the session object anymore.
333
333
You'd get a RuntimeError "cannot schedule new futures after shutdown".
334
334
"""
335
- print (
336
- f"{ get_current_time_in_ms ()} Calling CassandraOnlineStore __del__() method"
337
- )
335
+ print ("Calling CassandraOnlineStore __del__() method" )
338
336
if self ._session :
339
337
if not self ._session .is_shutdown :
340
338
self ._session .shutdown ()
341
- print (f"{ get_current_time_in_ms ()} Session is shutdown" )
339
+ current_time_in_ms = datetime .now ().strftime ("%Y-%m-%d %H:%M:%S.%f" )[
340
+ :- 3
341
+ ]
342
+ print (f"{ current_time_in_ms } Session is shutdown" )
342
343
343
344
if self ._cluster :
344
345
if not self ._cluster .is_shutdown :
345
346
self ._cluster .shutdown ()
346
- print (f"{ get_current_time_in_ms ()} Cluster is shutdown" )
347
+ current_time_in_ms = datetime .now ().strftime ("%Y-%m-%d %H:%M:%S.%f" )[
348
+ :- 3
349
+ ]
350
+ print (f"{ current_time_in_ms } Cluster is shutdown" )
347
351
348
352
def online_write_batch_connector (
349
353
self ,
You can’t perform that action at this time.
0 commit comments