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
Add a Task wrapper for MicroSoft OpenPAI #2531
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for submitting @liudongqing
I have a number of comments to make, but before i go into detail i wanted to provide some high level thoughts and questions.
- Could you explain the
__slots__
usage and__slot_to_dict()
? - When a class property is required to be overriden, decorate it with
@abc.abstractproperty
. - You have a mix of
camelCase
andsnake_case
instance variables. Can we stick to just one? Preferably,snake_case
. - On multiple occasions, you reference an element of a Request response before verifying that it returned with a valid HTTP code such to contain text or json
- Similarly, verify that the contents include what you expect. (Looking at the
token
instantiation here - will that POST response always include atoken
key in the response?)
@dlstadther Thanks for your comments, see my response below:
|
@dlstadther any new comments? |
Sorry @liudongqing I'll try to re-review this this week. Thanks for following up! |
1) correct/add more doc strings. 2) raise exception when 404 3) use global logger directly. 4) change expiration to integer
@dlstadther Thanks for your comments, sorry for delayed response due to a long vacation. |
@dlstadther , could you please help to follow? Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly just some visual cleanup.
But do still have hesitations about the unittest.
The unittests failed, looks like requests lib got an issued Urllib3 1.24. I checked the master branch, it failed as well. |
@dlstadther passed UT by adding the requests>=2.20.0 per comment in the issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much for your prompt fixes. I believe this is the last thing from me! :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this LGTM now
@dlstadther Thanks! Any more actions I need to take to merge that or just waiting someone to do it at convenience time? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If closed, you may revisit when your time allows and reopen! Thank you for your contributions. |
@liudongqing I'm so sorry this fell off my radar! I noted this was ready to merge and i meant to do so. Could you update the merge conflict so that i can merge? |
Thanks so much @liudongqing ! |
Description
Microsoft OpenPAI Job wrapper for Luigi.
Add luigi/contrib/pai.py
Add test/contrib/pai_test.py
Motivation and Context
Microsoft OpenPAI Job wrapper for Luigi.
"OpenPAI is an open source platform that provides complete AI model training and resource management capabilities,
it is easy to extend and supports on-premise, cloud and hybrid environments in various scale."
For more information about OpenPAI : https://github.com/Microsoft/pai/
Have you tested this? If so, how?
Tested in our local open pai cluster.