def calculate_chunk_size(num_tasks, num_parallel_processes,
    update_timeline_num=8):
    """
    calculate the size of the number of tasks to pass in each 'chunk' to each parallele process
    """
    num_chunks, extra = divmod(num_tasks, num_parallel_processes *
        update_timeline_num)
    if extra:
        num_chunks += 1
    return int(num_chunks)
