jeff_sss
jeff_sss3mo ago

Deep Sleep and Human-in-the-Loop (HITL)

Just a couple of questions. 1. Does deep sleep consume any credits in buildship? I have no-cold start package on. 2. Whether there is a way to set X number of days of deep sleep and HITL at the same time, which ever triggers earlier will progress the workflow? if so, would appreciate some sorta sample workflow to showcase, thanks.
4 Replies
AI Support
AI Support3mo ago
Processing...
🤖 Gathering bytes and bits. 🧲 this might take a couple of minutes... beep boop
AI Support
AI Support3mo ago
🤖 AI Response
BuildShip's deep sleep functionality allows workflows to pause without consuming any credits, thanks to the no-cold start package. When a workflow is in deep sleep, it is essentially paused and not using resources or credits, ensuring that credits are only used when the workflow is actively running. This is detailed in the BuildShip documentation, which confirms that deep sleep is credit-free and workflows resume instantly when triggered. You can also combine deep sleep with Human-in-the-Loop (HITL) functionality. By using a Parallel Execution node, you can set up one branch to handle a deep sleep timer (e.g., wait for X days) and another branch to wait for HITL input. The workflow will proceed as soon as either the timer expires or the HITL input is received. This setup allows for flexible workflow progression, ensuring that whichever event occurs first will move the workflow forward. The Chatbot documentation provides specific guidance on configuring these features together in chat-based workflows. 🔗 References: 1. https://buildship.com/blog/ship-week-recap 2. https://www.youtube.com/watch?v=QHd2p0LVK1o 3. https://os.mbed.com/docs/mbed-os/v6.16/apis/power-management-sleep.html 4. https://randomnerdtutorials.com/esp32-deep-sleep-arduino-ide-wake-up-sources/ 5. https://www.youtube.com/watch?v=wHiVrnz1Ayc
BuildShip AI Support
jeff_sss
jeff_sssOP3mo ago
but when using HITL, if a human does not come back for 2 days, will those 2 days worth of credits be charged?
Gaurav Chadha
Gaurav Chadha3mo ago
Hi @jeff_sss until the workflow is paused, and util resumed or trigger manually, it won't consume credits.

Did you find this page helpful?