Skip to content
This repository was archived by the owner on Feb 3, 2021. It is now read-only.
This repository was archived by the owner on Feb 3, 2021. It is now read-only.

Option worker_on_master is being ignored #512

@jaley

Description

@jaley

I think recent changes have broken this option.

cluster.yaml file:

docker_repo: <private repo image>
size: 10
size_low_pri: 50
subnet_id: <private subnet id>
username: spark
vm_size: standard_e32_v3
worker_on_master: false

If I ssh to the master instance, I see the following:

$ sudo docker exec -it <container id> /bin/bash

$ env | grep AZTK 
AZTK_WORKING_DIR=/mnt/batch/tasks/startup/wd
AZTK_MIXED_MODE=True
AZTK_PYTHON_VERSION=3.5.4
AZTK_IS_WORKER=true
AZTK_WORKER_ON_MASTER=False
AZTK_MASTER_IP=10.128.80.91
AZTK_IS_MASTER=true

Note that AZTK_IS_MASTER and AZTK_IS_WORKER are both true despite AZTK_WORKER_ON_MASTER=False.

I believe this is because the install.py script is using the string value "False" in a boolean context here. The expression bool('False') evaluates to True in Python.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions