Python client library for Modal, a serverless cloud computing platform that enables developers to run Python code in the cloud with on-demand access to compute resources.
85
{
"context": "This criteria evaluates how well the engineer uses the modal.Queue API to implement a producer-consumer pattern. The focus is on proper usage of Queue creation, batch operations for adding and retrieving items, and correct integration with Modal's function decorators.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Queue Creation",
"description": "Uses modal.Queue.from_name() to create or reference a persistent queue with appropriate parameters (e.g., create_if_missing=True)",
"max_score": 15
},
{
"name": "Batch Put Operation",
"description": "Uses queue.put_many() to add multiple items to the queue in a single operation within the producer function",
"max_score": 25
},
{
"name": "Batch Get Operation",
"description": "Uses queue.get_many() to retrieve multiple items from the queue in a single operation within the consumer function",
"max_score": 25
},
{
"name": "Modal App Setup",
"description": "Properly creates a modal.App instance and uses @app.function() decorator to define producer and consumer functions",
"max_score": 15
},
{
"name": "FIFO Ordering",
"description": "Implementation correctly maintains FIFO order such that items are retrieved in the same order they were added",
"max_score": 10
},
{
"name": "Empty Queue Handling",
"description": "Consumer function correctly handles the case when the queue is empty or has fewer items than requested, without raising exceptions",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-modaldocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10