Skip to content

Conversation

@GuillaumeDSM
Copy link
Member

@GuillaumeDSM GuillaumeDSM commented Jan 10, 2026

No description provided.

Comment on lines +118 to +129
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)
Copy link
Member Author

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")
Copy link
Member Author

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

Copy link
Member Author

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

Comment on lines +108 to +110
parsed_description["params"]["SIMULATED_PORTFOLIO"] = {
"ETH": 1,
}
Copy link
Member Author

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)
Copy link
Member Author

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

@GuillaumeDSM GuillaumeDSM changed the title [Minibot] integrate minibot actions consumer integrate octobot actions consumer Jan 10, 2026
@GuillaumeDSM GuillaumeDSM merged commit 03ae7c5 into master Jan 11, 2026
5 checks passed
@GuillaumeDSM GuillaumeDSM deleted the minibot branch January 11, 2026 16:04
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.

3 participants