@@ -463,7 +463,7 @@ pub trait CacheStore: DIService + Send + Sync {
463463 priority_sort : bool ,
464464 ) -> Result < Vec < IdRow < QueueItem > > , CubeError > ;
465465 // API with Path
466- async fn queue_get_by_path ( & self , key : String ) -> Result < Option < IdRow < QueueItem > > , CubeError > ;
466+ async fn queue_get ( & self , key : QueueKey ) -> Result < Option < IdRow < QueueItem > > , CubeError > ;
467467 async fn queue_cancel ( & self , key : QueueKey ) -> Result < Option < IdRow < QueueItem > > , CubeError > ;
468468 async fn queue_heartbeat ( & self , key : QueueKey ) -> Result < ( ) , CubeError > ;
469469 async fn queue_retrieve_by_path (
@@ -749,12 +749,11 @@ impl CacheStore for RocksCacheStore {
749749 . await
750750 }
751751
752- async fn queue_get_by_path ( & self , path : String ) -> Result < Option < IdRow < QueueItem > > , CubeError > {
752+ async fn queue_get ( & self , key : QueueKey ) -> Result < Option < IdRow < QueueItem > > , CubeError > {
753753 self . store
754754 . read_operation ( move |db_ref| {
755755 let queue_schema = QueueItemRocksTable :: new ( db_ref. clone ( ) ) ;
756- let index_key = QueueItemIndexKey :: ByPath ( path) ;
757- queue_schema. get_single_opt_row_by_index ( & index_key, & QueueItemRocksIndex :: ByPath )
756+ queue_schema. get_row_by_key ( key)
758757 } )
759758 . await
760759 }
@@ -1079,11 +1078,8 @@ impl CacheStore for ClusterCacheStoreClient {
10791078 panic ! ( "CacheStore cannot be used on the worker node! queue_list was used." )
10801079 }
10811080
1082- async fn queue_get_by_path (
1083- & self ,
1084- _path : String ,
1085- ) -> Result < Option < IdRow < QueueItem > > , CubeError > {
1086- panic ! ( "CacheStore cannot be used on the worker node! queue_get_by_path was used." )
1081+ async fn queue_get ( & self , _key : QueueKey ) -> Result < Option < IdRow < QueueItem > > , CubeError > {
1082+ panic ! ( "CacheStore cannot be used on the worker node! queue_get was used." )
10871083 }
10881084
10891085 async fn queue_cancel ( & self , _key : QueueKey ) -> Result < Option < IdRow < QueueItem > > , CubeError > {
0 commit comments