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 agent.tasks regression #468

Merged
merged 1 commit into from
Oct 5, 2023
Merged

Fix agent.tasks regression #468

merged 1 commit into from
Oct 5, 2023

Conversation

DavidePrincipi
Copy link
Member

@DavidePrincipi DavidePrincipi commented Oct 5, 2023

A recent change to the Python agent.tasks library introduced a new key pattern for task output, error and exit code. The pattern does not apply to the Redis event channel name. As result since that change, the Redis client of agent.tasks is no longer capable of listening to task progress and falls back to task polling which is much slower.

This PR reverts the Pubsub channel name to the original value for the Redis client library. Note that a similar issue is not found in the HTTP library because api-server uses a different protocol based on the web socket.

See https://trello.com/c/b9reQ77C/428-core-p0-slow-api-cli-task-response
Refs #391

A recent change to the Python agent.tasks library introduced a new key
pattern for task output, error and exit code. The pattern does not apply
to the Redis event channel name. As result since that change, the Redis
client of agent.tasks is no longer capable of listening to task progress
and falls back to task polling which is much slower.
@DavidePrincipi DavidePrincipi added the bug Something isn't working label Oct 5, 2023
@DavidePrincipi DavidePrincipi self-assigned this Oct 5, 2023
@DavidePrincipi DavidePrincipi merged commit 591ad83 into main Oct 5, 2023
5 checks passed
@DavidePrincipi DavidePrincipi deleted the fix-slow-apicli branch October 5, 2023 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant