-
Couldn't load subscription status.
- Fork 79
Workflow object #1641
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
Workflow object #1641
Conversation
qiita_db/handlers/processing_job.py
Outdated
| payload_success = payload['success'] | ||
| if payload_success: | ||
| artifacts = payload['artifacts'] | ||
| error = None |
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.
Should error be '' so we always return a string?
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.
Ignore this, got confused with error_msg. However, error_msg will not be defined, right?
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.
error_msg is defined in line 171.
|
A few comments. |
… into workflow-object
| edges = [(nodes[s], nodes[d]) for s, d in edges] | ||
| g.add_edges_from(edges) | ||
| else: | ||
| # It is possible that there are no edges because we are still |
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.
One of this is missing a test.
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.
Added
|
A few more comments. |
|
@ElDeveloper and/or @mortonjt can you review this PR? |
… into workflow-object
… into workflow-object
| processing_parameters=params) | ||
| job.status = 'success' | ||
| payload = loads(self.request.body) | ||
| try: |
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.
Would you mind restricting the scope of this try block to just the line that might raise the exception?
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.
Done
|
👍 |
|
Thanks! Comments addressed |
This PR adds the necessary DB structure to support default workflows from plugins and user-generated workflows.
Overview of changes in this PR: