fix: refine environment creation condition in terminal_tool
- Updated the environment creation condition to specifically check for "singularity" instead of allowing "local", ensuring more precise handling of environment types during task execution.
This commit is contained in:
parent
8f6788474b
commit
0729ef7353
1 changed files with 1 additions and 1 deletions
|
|
@ -1707,7 +1707,7 @@ def terminal_tool(
|
||||||
needs_creation = False
|
needs_creation = False
|
||||||
|
|
||||||
if needs_creation:
|
if needs_creation:
|
||||||
if env_type in ("singularity", "local"):
|
if env_type == "singularity":
|
||||||
_check_disk_usage_warning()
|
_check_disk_usage_warning()
|
||||||
logger.info("Creating new %s environment for task %s...", env_type, effective_task_id[:8])
|
logger.info("Creating new %s environment for task %s...", env_type, effective_task_id[:8])
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue