Skip to content
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

Fix create message by adding workflow_uuid #486

Merged
merged 1 commit into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fastagency/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def process_message(self, message: IOMessage) -> Optional[str]:
return self.visit(message)
except Exception as e:
# log the error and return None
logger.error(f"Error processing message ({message}): {e}", stack_info=True)
logger.error(f"Error processing message ({message}): {e}", exc_info=True)
return None

def text_message(
Expand Down
9 changes: 7 additions & 2 deletions fastagency/runtimes/autogen/autogen.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,14 @@
body = kwargs.pop("body")
sender = kwargs.get("sender")
recipient = kwargs.get("recipient")
workflow_uuid = kwargs.get("workflow_uuid")

Check warning on line 211 in fastagency/runtimes/autogen/autogen.py

View check run for this annotation

Codecov / codecov/patch

fastagency/runtimes/autogen/autogen.py#L211

Added line #L211 was not covered by tests
retval = [
IOMessage.create(
body=body, sender=sender, recipient=recipient, type="text_message"
body=body,
sender=sender,
recipient=recipient,
type="text_message",
workflow_uuid=workflow_uuid,
)
]

Expand Down Expand Up @@ -324,7 +329,7 @@
except Exception as e:
logger.error(
f"Unhandled exception occurred when executing the workflow: {e}",
stack_info=True,
exc_info=True,
)
ui.error(
sender="AutoGenWorkflows",
Expand Down
2 changes: 1 addition & 1 deletion fastagency/ui/mesop/mesop.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def workflow_worker(
except Exception as e:
logger.error(
f"Unexpected exception raised in Mesop workflow worker: {e}",
stack_info=True,
exc_info=True,
)
ui.error(
sender="Mesop workflow_worker",
Expand Down
Loading