Skip to main content
Glama
graceful_shutdown.feature833 B
@gateway Feature: Graceful Shutdown Scenario Outline: Shutdown while there is a request in transit Given Lunar Proxy is down And Lunar Proxy is up And API Provider is up When Request is made through Lunar Proxy to a high-latency provider And Lunar Proxy is stopped gracefully with <signal> before response is obtained And wait 0.5 seconds And Another request is made after graceful shutdown started Then The response for the request pre-shutdown is 200 # We expect the post signal request to fail (this is why the response is 503 - 'Lunar Gateway is shuting down') And The response for request post-shutdown is 503 Examples: | signal | | SIGINT | | SIGTERM |

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TheLunarCompany/lunar'

If you have feedback or need assistance with the MCP directory API, please join our Discord server