vishesh-baghel / glide

You can see how Glidee-bot works by installing it from here
https://github.com/apps/glidee-bot
ISC License
0 stars 0 forks source link

Add a scheduler to fetch and update all the predicted risk scores in the 'File' model #35

Closed vishesh-baghel closed 8 months ago

vishesh-baghel commented 8 months ago

This scheduler will be responsible for all the retraining of the predictor model. This scheduler will run every 10 minutes to update any residual job in the DB. The jobs collection schema would be like this: { installationId, owner, repoName, filePath, status: completed, not-completed. }

Every 10 minutes, the scheduler will query the DB with the jobs with the status as not-completed. It will fetch the mindsDB with parameters given in the schema to get the unique filePath predicted score and then finally it will update the predicted risk score in the File model.