Skip to content

Conversation

@dolphinium
Copy link

The client.runs.list method returns a list of dictionaries, where each dictionary represents a run. The previous code attempted to access the run ID using attribute access (run_info.id), which caused an AttributeError because dictionaries do not have attributes.

This commit changes the access method to use the correct dictionary key (run_info["run_id"]) to retrieve the run ID. This resolves the bug that occurred when cleaning up previous runs from a thread, allowing the email ingestion process to complete successfully.

The `client.runs.list` method returns a list of dictionaries, where each dictionary represents a run. The previous code attempted to access the run ID using attribute access (`run_info.id`), which caused an `AttributeError` because dictionaries do not have attributes.

This commit changes the access method to use the correct dictionary key (`run_info["run_id"]`) to retrieve the run ID. This resolves the bug that occurred when cleaning up previous runs from a thread, allowing the email ingestion process to complete successfully.
@dolphinium
Copy link
Author

image

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.

1 participant