conda-incubator / conda-store

Data science environments, for collaboration. ✨
https://conda.store
BSD 3-Clause "New" or "Revised" License
150 stars 50 forks source link

Create local conda-store dir for celery beat data files #902

Closed soapy1 closed 1 month ago

soapy1 commented 1 month ago

Description

Previously, when running docker compose up -d the worker container would have some errors output because it is not able to create it's celery beat file. For example,

$ docker compose up 
. . .
conda-store-worker-1  | [2024-10-19 00:44:41,925: INFO/Beat] beat: Starting...
conda-store-worker-1  | [2024-10-19 00:44:41,952: ERROR/Beat] Removing corrupted schedule file '/.local/share/conda-store/celerybeat-schedule': FileNotFoundError(2, 'No such file or directory')
. . .

conda-store-worker-1  | [2024-10-19 00:44:41,967: WARNING/Beat] FileNotFoundError: [Errno 2] No such file or directory: b'/.local/share/conda-store/celerybeat-schedule.dat'
. . .

This PR creates the missing directory and gives the user permission to it so celery can create it's beat file. Now the output is:

$ docker compose up
. . .
conda-store-worker-1  | [2024-10-19 00:48:24,340: INFO/Beat] beat: Starting...
. . .

Pull request checklist

netlify[bot] commented 1 month ago

Deploy Preview for conda-store canceled.

Name Link
Latest commit 17eeeb64c9abf8ec23e85540d8255a93e1faad8f
Latest deploy log https://app.netlify.com/sites/conda-store/deploys/6713034440cdac0008ef4346
netlify[bot] commented 1 month ago

Deploy Preview for conda-store canceled.

Name Link
Latest commit 0bc82b6a6ce446d7ed3ae7a47e127c37e53bcaf9
Latest deploy log https://app.netlify.com/sites/conda-store/deploys/67130350dc4c840008b33a29