Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also check dataset.deleted when determining if data can be displayed
This is being called when serialing HDAs in the poller if the HDA is expaneded. When we purge via celery we set the HDA to deleted, flush and purge async, so it is possible that the async task removes the dataset from disk while the ORM object in the poller still is in non-purged state. I think this fixes https://sentry.galaxyproject.org/share/issue/0ae7a9d9ad564054bd11c9a43aa6994c/: ``` FileNotFoundError: [Errno 2] No such file or directory: '' File "galaxy/datatypes/interval.py", line 914, in get_estimated_display_viewport with compression_utils.get_fileobj(dataset.get_file_name()) as fh: File "galaxy/util/compression_utils.py", line 79, in get_fileobj return get_fileobj_raw(filename, mode, compressed_formats)[1] File "galaxy/util/compression_utils.py", line 139, in get_fileobj_raw return compressed_format, open(filename, mode, encoding="utf-8") ``` The error occurred at the same second as the last update to the history_dataset_association.
- Loading branch information