Immediately closes all active daemon processes and clears the daemon pool. This is useful for manual cleanup or when shutting down your application.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ollm/opencomic-ai-bin/llms.txt
Use this file to discover all available pages before exploring further.
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