Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fileops stuck in progress example #76

Open
phirstgemini opened this issue Jan 2, 2025 · 0 comments
Open

Fileops stuck in progress example #76

phirstgemini opened this issue Jan 2, 2025 · 0 comments

Comments

@phirstgemini
Copy link
Collaborator

phirstgemini commented Jan 2, 2025

date_headers", "args": {"filename": "N20250101S0206.fits", "generic": [["RAWBG", "UNKNOWN"]]}} | {"ok": false, "error": "Exception calling worker function for update_headers - {'filename': 'N20
250101S0206.fits', 'generic': [['RAWBG', 'UNKNOWN']]}", "value": null}```


set inprogress to False and it cleared immediately.

```2025-01-01 08:00:44,543 1951208:queue:96 DEBUG: Popped id 135846 - None from fileopsqueue
2025-01-01 08:00:44,548 1951208:service_fileops_queue:102 INFO: Popped queue id 135846 to process
2025-01-01 08:00:44,548 1951208:service_fileops_queue:103 DEBUG: Request is: {"request": "update_headers", "args": {"filename": "N20250101S0206.fits", "generic": [["RAWBG", "UNKNOWN"]]}}
2025-01-01 08:00:44,548 1951208:fileops:157 INFO: update_headers: {'filename': 'N20250101S0206.fits', 'generic': [['RAWBG', 'UNKNOWN']]}
2025-01-01 08:00:44,548 1951208:fileops:160 DEBUG: Instantiating FitsEditor on filename N20250101S0206.fits
2025-01-01 08:00:44,550 1951208:fitseditor:118 DEBUG: FitsEditor found diskfile id 476905:/N20250101S0206.fits
2025-01-01 08:00:44,551 1951208:fitseditor:166 DEBUG: FitsEditor editing local file: /sci/dataflow/N20250101S0206.fits
2025-01-01 08:00:44,554 1951208:fitseditor:183 DEBUG: FitsEditor hdulist: [<astropy.io.fits.hdu.image.PrimaryHDU object at 0x7f9afab3e8f0>, <astropy.io.fits.hdu.image.ImageHDU object at 0x7f9afab8ca30>, <astropy.io.fits.hdu.image.ImageHDU object at 0x7f9afa71f6a0>, <astropy.io.fits.hdu.image.ImageHDU object at 0x7f9afa71cc70>, <astropy.io.fits.hdu.image.ImageHDU object at 0x7f9afa71c9a0>, <astropy.io.fits.hdu.image.ImageHDU object at 0x7f9afa71c8e0>, <astropy.io.fits.hdu.image.ImageHDU object at 0x7f9afa71e080>, <astropy.io.fits.hdu.image.ImageHDU object at 0x7f9afa71eb90>, <astropy.io.fits.hdu.image.ImageHDU object at 0x7f9afa71e260>, <astropy.io.fits.hdu.image.ImageHDU object at 0x7f9afa71d6c0>, <astropy.io.fits.hdu.image.ImageHDU object at 0x7f9afa71e440>, <astropy.io.fits.hdu.image.ImageHDU object at 0x7f9afa71fdc0>, <astropy.io.fits.hdu.image.ImageHDU object at 0x7f9afa71f5e0>]
2025-01-01 08:00:44,563 1951208:fileops:199 DEBUG: Updating keyword: RAWBG
2025-01-01 08:00:44,563 1951208:fitseditor:216 DEBUG: Closing hdulist: /sci/dataflow/N20250101S0206.fits
2025-01-01 08:00:44,649 1951208:fileopser:82 ERROR: Exception calling worker function for update_headers - {'filename': 'N20250101S0206.fits', 'generic': [['RAWBG', 'UNKNOWN']]}
Traceback (most recent call last):
  File "/opt/FitsStorage/fits_storage/server/fileopser.py", line 141, in fileop
    self.response.value = self.worker(self.request_args, self.s, self.l)
  File "/opt/FitsStorage/fits_storage/server/fileops.py", line 218, in update_headers
    iq = IngestQueue(session, logger)
  File "/opt/anaconda3/envs/dragons/lib/python3.10/site-packages/sqlalchemy/orm/attributes.py", line 487, in __get__
    return self.impl.get(state, dict_)
  File "/opt/anaconda3/envs/dragons/lib/python3.10/site-packages/sqlalchemy/orm/attributes.py", line 959, in get
    value = self._fire_loader_callables(state, key, passive)
  File "/opt/anaconda3/envs/dragons/lib/python3.10/site-packages/sqlalchemy/orm/attributes.py", line 990, in _fire_loader_callables
    return state._load_expired(state, passive)
  File "/opt/anaconda3/envs/dragons/lib/python3.10/site-packages/sqlalchemy/orm/state.py", line 712, in _load_expired
    self.manager.expired_attribute_loader(self, toload, passive)
  File "/opt/anaconda3/envs/dragons/lib/python3.10/site-packages/sqlalchemy/orm/loading.py", line 1465, in load_scalar_attributes
    raise orm_exc.ObjectDeletedError(state)
sqlalchemy.orm.exc.ObjectDeletedError: Instance '<IngestQueueEntry at 0x7f9afa71e620>' has been deleted, or its row is otherwise not present.```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant