Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Pipeline command #41

Merged
merged 4 commits into from
May 29, 2020
Merged

[WIP] Pipeline command #41

merged 4 commits into from
May 29, 2020

Conversation

hhsecond
Copy link
Contributor

Making pipelining possible with redisai commands as well

@codecov
Copy link

codecov bot commented May 28, 2020

Codecov Report

Merging #41 into master will decrease coverage by 1.30%.
The diff coverage is 93.75%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #41      +/-   ##
==========================================
- Coverage   98.41%   97.10%   -1.31%     
==========================================
  Files           5        6       +1     
  Lines         567      656      +89     
==========================================
+ Hits          558      637      +79     
- Misses          9       19      +10     
Impacted Files Coverage Δ
redisai/utils.py 97.36% <ø> (-0.51%) ⬇️
redisai/command_builder.py 91.86% <91.46%> (-2.33%) ⬇️
redisai/client.py 93.63% <92.10%> (-4.65%) ⬇️
redisai/postprocessor.py 100.00% <100.00%> (ø)
test/test.py 99.70% <100.00%> (+0.02%) ⬆️

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 4918068...cbae7d5. Read the comment docs.

@lgtm-com
Copy link

lgtm-com bot commented May 28, 2020

This pull request introduces 2 alerts when merging 168c4a5 into 4918068 - view on LGTM.com

new alerts:

  • 1 for Conflicting attributes in base classes
  • 1 for Missing call to __init__ during object initialization

@hhsecond hhsecond requested a review from lantiga May 28, 2020 16:54
@hhsecond hhsecond marked this pull request as ready for review May 28, 2020 16:54
@lantiga
Copy link
Contributor

lantiga commented May 28, 2020

Looks good, do you intend to add all commands to pipelines, in addition to tensorget prior to merging? Forget the comment, I get it now :-)

lantiga
lantiga previously approved these changes May 28, 2020
meta_only=meta_only))
return super().tensorget(key, as_numpy, meta_only)

def _execute_transaction(self, *args, **kwargs):
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI, transactions won't work on blocking commands, ie MODELRUN, SCRIPTRUN and DAGRUN. Not sure we want to catch this during pipeline creation or let Redis complain.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Never knew! Thanks

I'll let the Redis complain, for now (I have added a #TODO to consider this later). Since the API is experimental, I assume that's fine

@lantiga
Copy link
Contributor

lantiga commented May 28, 2020

Looks great!

@hhsecond
Copy link
Contributor Author

Thanks @lantiga, merging it

@hhsecond hhsecond merged commit bae689c into master May 29, 2020
@hhsecond hhsecond deleted the pipeline branch May 29, 2020 01:32
@lgtm-com
Copy link

lgtm-com bot commented May 29, 2020

This pull request introduces 2 alerts when merging cbae7d5 into 4918068 - view on LGTM.com

new alerts:

  • 1 for Conflicting attributes in base classes
  • 1 for Missing call to __init__ during object initialization

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.

2 participants