Skip to content
This repository was archived by the owner on Feb 3, 2026. It is now read-only.

integrate octobot actions consumer - #18

Merged
GuillaumeDSM merged 2 commits into
masterfrom
minibot
Jan 11, 2026
Merged

GuillaumeDSM merged 2 commits into
masterfrom
minibot

Conversation

@GuillaumeDSM

@GuillaumeDSM GuillaumeDSM commented Jan 10, 2026 •

Copy link
Copy Markdown
Member

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
Copy Markdown
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

Comment thread octobot_node/cli.py


def start_server(args):
logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(levelname)-8s %(name)-24s %(message)s")

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants