@staticmethod
def get_workers_on_a_node(num_workers, resources):
    """ Returns the number of workers that can be placed on each node"""
    num_nodes = len(resources.global_nodelist)
    workers_per_node = num_workers // num_nodes + (num_workers % num_nodes > 0)
    return workers_per_node
