Skip to content

Commit

Permalink
0.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjoyo committed Apr 30, 2024
1 parent e0f1941 commit d3efc62
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bpm_ai_inference/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@
logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO)

daemon = create_remote_object_daemon(
host=os.environ.get('DAEMON_HOST', '0.0.0.0'),
port=int(os.environ.get('DAEMON_PORT', 6666))
host=os.getenv('DAEMON_HOST', '0.0.0.0'),
port=int(os.getenv('DAEMON_PORT', 6666)),
instance_strategy=os.getenv('INSTANCE_STRATEGY', 'memory_limit'),
max_memory=int(os.getenv('SOFT_MEMORY_LIMIT', 8_589_934_592))
)

for c in remote_classes:
Expand Down

0 comments on commit d3efc62

Please sign in to comment.