Skip to content

Commit

Permalink
parse env var to int
Browse files Browse the repository at this point in the history
  • Loading branch information
hanars committed Jan 25, 2024
1 parent fc93c3b commit 1dbd530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hail_search/web_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async def status(request: web.Request) -> web.Response:

async def init_web_app():
# memory limits adapted from https://github.com/hail-is/hail/blob/main/hail/python/hailtop/hailctl/dataproc/start.py#L321C17-L321C36
spark_conf = {'spark.driver.memory': f'{(MACHINE_MEM-11)*JVM_MEMORY_FRACTION}g'} if MACHINE_MEM else None
spark_conf = {'spark.driver.memory': f'{(int(MACHINE_MEM)-11)*JVM_MEMORY_FRACTION}g'} if MACHINE_MEM else None
hl.init(idempotent=True, spark_conf=spark_conf)
load_globals()
app = web.Application(middlewares=[error_middleware], client_max_size=(1024**2)*10)
Expand Down

0 comments on commit 1dbd530

Please sign in to comment.