def run_deliveries_todo(sa, slogs, dest, runs):

    def do_run(run):
        df = pd.concat((detail for detail in run_deliveries(slogs, sa, run)))
        return by_vat(dest, run, df)
    todo = (dask.delayed(do_run)(run) for (_, run) in runs.iterrows())
    return todo
def run_deliveries_todo(sa, slogs, dest, runs):

    def do_run(run):
        df = pd.concat((detail for detail in run_deliveries(slogs, sa, run)))
        return by_vat(dest, run, df)
    todo = (dask.delayed(do_run)(run) for (_, run) in runs.iterrows())
    return todo