tessl install tessl/pypi-aioredis@2.0.0asyncio (PEP 3156) Redis support
Agent Success
Agent success rate when using this tile
98%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.01x
Baseline
Agent success rate without this tile
97%
{
"context": "This criteria evaluates how well the engineer uses aioredis list operations to implement a task queue manager. The focus is on correct usage of Redis list commands through the aioredis client API.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses rpush",
"description": "Uses the rpush method to add tasks to the end of the list in add_task and add_tasks methods. This ensures FIFO ordering for the queue.",
"max_score": 20
},
{
"name": "Uses lpop",
"description": "Uses the lpop method to retrieve and remove tasks from the front of the list in get_next_task method. For get_tasks_batch, uses lpop in a loop or similar approach to get multiple items.",
"max_score": 20
},
{
"name": "Uses llen",
"description": "Uses the llen method to get the current length of the list in get_queue_length method.",
"max_score": 15
},
{
"name": "Uses lrange",
"description": "Uses the lrange method to retrieve tasks without removing them in peek_tasks method. Correctly passes start and end parameters.",
"max_score": 15
},
{
"name": "Uses ltrim",
"description": "Uses the ltrim method to keep only a specific range of tasks in trim_queue method. Correctly calculates the range to keep the most recent tasks.",
"max_score": 15
},
{
"name": "Queue deletion",
"description": "Uses the delete method (or del, or unlink) to remove the entire list key in clear_queue method.",
"max_score": 10
},
{
"name": "Async/await usage",
"description": "All Redis operations are properly awaited with the await keyword since aioredis methods are coroutines.",
"max_score": 5
}
]
}