Syntax
Parameters
This method takes no parameters.Returns
void - This method does not return a value.
Behavior
- Closes all active daemon processes immediately
- Clears the internal daemon pool completely
- Does not wait for ongoing operations to complete
- Frees all memory used by daemon processes
- Safe to call even if no daemons are running
Example
Use cases
Application shutdown
After batch processing
Memory management
Important notes
- Does not interrupt currently processing images
- Daemons will be recreated automatically on next upscale operation
- Use this for explicit cleanup; daemons also close automatically based on idle timeout
Related
- setConcurrentDaemons() - Control concurrent daemon count
- setDaemonIdleTimeout() - Configure automatic cleanup
- Daemon mode guide - Learn about daemon mode