Skip to content

Add possibility to input uid#141

Merged
JulienPeloton merged 2 commits intomainfrom
issue/random_integers
Jan 21, 2025
Merged

Add possibility to input uid#141
JulienPeloton merged 2 commits intomainfrom
issue/random_integers

Conversation

@JulienPeloton
Copy link
Member

I observe race conditions when generating the SSOFT:

File "/tmp/ipykernel_31682/230363110.py", line 26, in extract_ephem
  File "/opt/anaconda/lib/python3.9/site-packages/fink_utils/sso/utils.py", line 269, in get_miriade_data
    eph = query_miriade_epehemcc(
  File "/opt/anaconda/lib/python3.9/site-packages/fink_utils/sso/utils.py", line 199, in query_miriade_epehemcc
    os.remove(date_path)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/ramdisk/spins/dates_3447621.txt'

I suspect the file has been erased by another process using the same UID. It is better to use https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.functions.rand.html to generate ID as arguments.

@JulienPeloton JulienPeloton added bug fix Something isn't working sso labels Jan 21, 2025
@JulienPeloton JulienPeloton merged commit faff521 into main Jan 21, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fix Something isn't working sso

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant