def produced_files(nhosts, jobid, njobtasks):
    """
    Associates file (to be written) to each job ID
    :param nhosts: total number of hosts
    :param jobid: job ID
    :param njobtasks: N of tasks per job
    :return: hosts_files: list of files (and associated host) for this jobID
    """

    return [(
             task % nhosts, 
             "kron_file_host{}_job{}_id{}".format(task % nhosts, jobid, jobid*njobtasks + task)
             ) for task in range(njobtasks)]