def METHOD_NAME(self, name, db):
    # This returns the total aggregate memory needed for the task,
    # which should be based on the larger of:
    #  1) the total number of unique (coadded) targets.
    #  2) the largest spectra file times the number of processes
    # Since it is not easy to calculate (1), and the constraint for (2)
    # is already encapsulated in the per-process memory requirements,
    # we return zero here.  This effectively selects one node.
    mem = 0.0
    return mem