Replies: 1 comment 1 reply
-
Hello @Nastaliss
There is an open issue about that: #292 but it's not actively worked on.
Makes sense, because the Sablier headers will not be forwarded as soon as the service is ready.
You can use the API, it is still quite undocumented you are right, and there's an issue about creating a OpenAPI document: #157 However, in the meantime, you can make the following calls: curl http://localhost:10000/api/strategies/blocking?group=mygroup&session_duration=1h&timeout=10m This will wake the group You can then check the response headers and/or body. If that answers your question, please mark this answered. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hi, I would like to wake up applications at a certain time of day because it takes some time to load and I'd like to make sure it's ready in the morning. Another use would be to run playwright tests on an instance that's automatically scaled down, and make sure it's up before the tests start.
I tried using curl to use the service's usual hostname, but as it's using a dynamic strategy I'm not sure how to differentiate the loading page to the actual service's page (I looked at the response headers, and status code but there is no header for loading page and a 200 status code)
I tried using the sablier API but did not find any documentation. Is that something that can be used in my use cases ?
Thanks :)
Beta Was this translation helpful? Give feedback.
All reactions