-
Notifications
You must be signed in to change notification settings - Fork 0
integrate octobot actions consumer #18
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
Conversation
| result = "" | ||
| metadata = "" | ||
| elif isinstance(result_obj, HueyError): | ||
| description = f"Task failed: {result_obj.error}" | ||
| description = f"Task failed: {result_obj.metadata.get('error')}" | ||
| status = TaskStatus.FAILED | ||
| result = "" | ||
| metadata = "" | ||
| else: | ||
| description = f"Task completed" | ||
| status = TaskStatus.COMPLETED | ||
|
|
||
| result = result_obj.get(TaskResultKeys.RESULT.value) | ||
| metadata = result_obj.get(TaskResultKeys.METADATA.value) | ||
| result = result_obj.get(TaskResultKeys.RESULT.value) | ||
| metadata = result_obj.get(TaskResultKeys.METADATA.value) |
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.
this is a fix of a crash related to tasks with results or raised errors
|
|
||
|
|
||
| def start_server(args): | ||
| logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(levelname)-8s %(name)-24s %(message)s") |
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'm not sure this is the right place, we just need to enable logs to see what happens when minibot runs tasks
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 updated this file with a few required params
| parsed_description["params"]["SIMULATED_PORTFOLIO"] = { | ||
| "ETH": 1, | ||
| } |
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.
this is a hard coded simulated portfolio, we will see if we keep this mechanism or not later on
| self.after_execution_state = None | ||
|
|
||
| def _parse_description(self, description: str) -> dict: | ||
| # TODO update this method once the decision about description is made (is it a dict or a string key=val; 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.
this method might become useless, depending on the initial actions format
No description provided.