Skip to content

Commit

Permalink
chore: Additional load test logging
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjcsmith committed Dec 2, 2024
1 parent b9bbc54 commit 50ce8a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions load-tests/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ done
# Wait for all instances to finish
for pid in "${PIDS[@]}"; do
wait $pid
echo "Instance $pid finished"
done

3 changes: 2 additions & 1 deletion load-tests/machine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ const client = new Inferable({
})

client.default.register({
func: () => {
func: (_, context) => {
console.log("Handling request", context)
return {
word: "needle"
}
Expand Down
1 change: 1 addition & 0 deletions load-tests/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default function () {
// Create a new run
const postRunResponse = http.post(`${BASE_URL}/clusters/${CLUSTER_ID}/runs`, JSON.stringify({
initialPrompt: 'Get the special word from the `searchHaystack` function',
reasoningTraces: false,
attachedFunctions: [
{
function: "searchHaystack",
Expand Down

0 comments on commit 50ce8a7

Please sign in to comment.