def all_prod_replicates_done(job):
    """Check if all prod replicate simulations completed."""
    try:
        a = job.doc.get("prod_replicates_done")
        b = job.doc.get("num_prod_replicates")
        if a >= b:
            print("simulation complete for {} job".format(job))
        return a >= b
    except (AttributeError, KeyError) as e:
        return False