Skip to content

Commit b66f245

Browse files
committed
Remove outdated comment
1 parent ce71f34 commit b66f245

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/redisai.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -411,21 +411,6 @@ int RedisAI_ModelScan_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv
411411

412412
/**
413413
* AI.MODELRUN model_key INPUTS input_key1 ... OUTPUTS output_key1 ...
414-
*
415-
* The request is queued and evaded asynchronously from a separate thread. The
416-
* client blocks until the computation finishes.
417-
*
418-
* 1. clone inputs as needed in the main thread (only the alternative is to
419-
* lock)
420-
* 2. spawn the new thread for running the model
421-
* 3. have reply callback put the data back into the key
422-
*
423-
* This way we avoid any race condition. The only gotcha is making sure no one
424-
* overwrites the model until it's done computing.
425-
* This means that setModel will decode on a candidate pointer, and will then
426-
* be picked up on the next round. We also need to signal when it's time to
427-
* dispose of the old model. The key is having a single thread looping
428-
* forexecution
429414
*/
430415
int RedisAI_ModelRun_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv,
431416
int argc) {

0 commit comments

Comments
 (0)