Skip to content

Conversation

@AvitalFineRedis
Copy link
Contributor

@AvitalFineRedis AvitalFineRedis commented Aug 29, 2021

Add support for AI.SCRIPTEXECUTE and AI.MODELEXECUTE commands.
Also added support to minbatchtimeout to the model interface (included in ModelGet command).

@codecov
Copy link

codecov bot commented Aug 29, 2021

Codecov Report

Merging #46 (4223d1d) into master (d3822a3) will increase coverage by 0.61%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #46      +/-   ##
==========================================
+ Coverage   92.85%   93.46%   +0.61%     
==========================================
  Files           6        6              
  Lines         546      597      +51     
==========================================
+ Hits          507      558      +51     
  Misses         26       26              
  Partials       13       13              
Impacted Files Coverage Δ
redisai/commands.go 93.33% <100.00%> (+0.78%) ⬆️
redisai/model.go 97.97% <100.00%> (+0.38%) ⬆️
redisai/script.go 97.05% <100.00%> (+0.69%) ⬆️
redisai/tensor.go 88.80% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d3822a3...4223d1d. Read the comment docs.

@AvitalFineRedis AvitalFineRedis changed the base branch from master to SCRIPTSTORE August 29, 2021 13:39
@AvitalFineRedis AvitalFineRedis changed the title Support AI.SCRIPTEXECUTE Support AI.SCRIPTEXECUTE and AI.MODELEXECUTE Sep 5, 2021
Copy link

@alonre24 alonre24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, what about DAG execute? Are you planning to do it in a separate PR?

@AvitalFineRedis AvitalFineRedis linked an issue Sep 7, 2021 that may be closed by this pull request
@AvitalFineRedis
Copy link
Contributor Author

Looks good, what about DAG execute? Are you planning to do it in a separate PR?

yes :)

Base automatically changed from SCRIPTSTORE to master September 10, 2021 06:28
}

func getTLSdetails() (tlsready bool, tls_cert string, tls_key string, tls_cacert string) {
func getTLSdetails() (tlsready bool, tls_cert, tls_key, tls_cacert string) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't use underscores in Go names; func result tls_cacert should be tlsCacert
don't use underscores in Go names; func result tls_cert should be tlsCert
don't use underscores in Go names; func result tls_key should be tlsKey

}

func getTLSdetails() (tlsready bool, tls_cert string, tls_key string, tls_cacert string) {
func getTLSdetails() (tlsready bool, tls_cert, tls_key, tls_cacert string) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't use underscores in Go names; func result tls_cacert should be tlsCacert
don't use underscores in Go names; func result tls_cert should be tlsCert
don't use underscores in Go names; func result tls_key should be tlsKey

}

func getTLSdetails() (tlsready bool, tls_cert string, tls_key string, tls_cacert string) {
func getTLSdetails() (tlsready bool, tls_cert, tls_key, tls_cacert string) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't use underscores in Go names; func result tls_cacert should be tlsCacert
don't use underscores in Go names; func result tls_cert should be tlsCert
don't use underscores in Go names; func result tls_key should be tlsKey

return
}

func (c *Client) LoadBackend(backend_identifier, location string) (err error) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't use underscores in Go names; method parameter backend_identifier should be backendIdentifier
exported method Client.LoadBackend should have comment or be unexported

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 10 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

}

func getTLSdetails() (tlsready bool, tls_cert string, tls_key string, tls_cacert string) {
func getTLSdetails() (tlsready bool, tls_cert, tls_key, tls_cacert string) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't use underscores in Go names; func result tls_cacert should be tlsCacert
don't use underscores in Go names; func result tls_cert should be tlsCert
don't use underscores in Go names; func result tls_key should be tlsKey

}

func ProcessTensorGetReply(reply interface{}, errIn error) (err error, dtype string, shape []int64, data interface{}) {
func ProcessTensorGetReply(reply interface{}, errIn error) (dtype string, shape []int64, data interface{}, err error) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported function ProcessTensorGetReply should have comment or be unexported

Copy link

@alonre24 alonre24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job :)

@AvitalFineRedis AvitalFineRedis merged commit df8d1a4 into master Sep 14, 2021
@AvitalFineRedis AvitalFineRedis deleted the SCRIPTEXECUTE_AND_MODELEXECUTE branch September 14, 2021 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support AI.SCRIPTEXECUTE and AI.MODELEXECUTE

2 participants