Skip to content

GPU type not saved if statistics already saved.  #77

@bouthilx

Description

@bouthilx
for entry in tqdm(scraper):
    saved = False
    if not ignore_statistics:
        saved = entry.statistics(recompute=True, save=True) is not None

    # Get GPU info for this job.
    update_allocated_gpu_type(cluster, entry)

    if not saved:
        collection.save_job(entry)
print(f"Saved {len(scraper)} entries.")

The part collection.save_job(entry) will not be called if entry.statistics returns True. The function update_allocated_gpu_type should also verify if it had made any modification and return this as a bool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions