Yash
Apps auto-restart
Hey folks,
A few months back i deployed my app on Railway, and i setup a auto restart mechanism that had a pattern of restarting every x hours. I'm unable to find that anymore, did anything change? Please let me know how i can change that schedule.
11 replies
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
requirements.txt
aiohttp==3.8.6
aiosignal==1.3.1
amqp==5.1.1
annotated-types==0.6.0
anyio==3.7.1
async-timeout==4.0.3
attrs==23.1.0
av==10.0.0
billiard==4.1.0
boto3
botocore
celery==5.3.4
certifi==2023.7.22
charset-normalizer==3.3.1
click==8.1.7
click-didyoumean==0.3.0
click-plugins==1.1.1
click-repl==0.3.0
coloredlogs==15.0.1
ctranslate2==3.20.0
dataclasses-json==0.6.1
decorator==5.1.1
fastapi==0.104.0
faster-whisper==0.7.0
ffmpeg-python==0.2.0
filelock==3.13.0
flatbuffers==23.5.26
flower==2.0.1
frozenlist==1.4.0
fsspec==2023.10.0
future==0.18.3
h11==0.14.0
huggingface-hub==0.18.0
humanfriendly==10.0
humanize==4.8.0
idna==3.4
imageio==2.31.6
imageio-ffmpeg==0.4.9
jmespath==1.0.1
jsonpatch==1.33
jsonpointer==2.4
kombu==5.3.2
langchain==0.0.325
langsmith==0.0.53
marshmallow==3.20.1
moviepy @ git+https://github.com/Zulko/moviepy.git@bc8d1a831d2d1f61abfdf1779e8df95d523947a5
mpmath==1.3.0
multidict==6.0.4
mypy-extensions==1.0.0
onnxruntime==1.16.1
openai==0.28.1
packaging==23.2
Pillow==10.0.1
proglog==0.1.10
prometheus-client==0.17.1
prompt-toolkit==3.0.39
protobuf==4.24.4
pydantic==2.4.2
pydantic_core==2.10.1
pydub==0.25.1
python-dateutil==2.8.2
python-dotenv==1.0.0
pytz==2023.3.post1
PyYAML==6.0.1
redis==5.0.1
requests
s3transfer==0.7.0
scipy
six==1.16.0
sniffio==1.3.0
SQLAlchemy==2.0.22
starlette==0.27.0
sympy==1.12
tenacity==8.2.3
tokenizers==0.13.3
tornado==6.3.3
tqdm==4.66.1
typing-inspect==0.9.0
typing_extensions==4.8.0
tzdata==2023.3
urllib3
uvicorn==0.23.2
vine==5.0.0
wcwidth==0.2.8
yarl==1.9.2
opencv-python==4.6.0.66
numpy
mtcnn
tensorflow
alive_progress==3.1.5
opencv-python-headless
nixpacks:
[phases.setup]
aptPkgs = [
"...",
"ffmpeg",
"imagemagick",
"ghostscript",
"gsfonts",
"fonts-droid-fallback",
"fonts-noto-mono",
"fonts-urw-base35",
"fonts-liberation",
"libsm6",
"libxext6",
"libgl1",
"python3-opencv",
"libglib2.0-0",
]
]
25 replies
I have a celery app, how will app sleeping work?
Hey folks, I have a couple of celery apps that I restart every few hours to limit memory leaks or clean memory. I noticed there's app sleeping now, the restarts I do cause some jobs to fail prematurely. How will app sleeping work in celery based apps? Say my app consumes 200mb after it restarts, this goes to 2-3 GB after first job until it restarts again. Will app sleeping take this back to 200mb without having to restart? I have a bunch of apps and I don't want to waste memory.
Thanks in advance
12 replies
Not related, but looking for help
I'm currently running my app using celery and uvicorn - it's a fast api application. Given the amount of things i'm doing, the app leaves a significant memory leak after the processing, which can be fixed with a restart, right now, i'm using railway cron.
I wanted to see if there's a way to restart celery when there are no ongoing tasks, i'm looking at supervisor, memory leaks but if there's an easy way to trigger graceful restart, i would appreciate any help!
16 replies
why is the deployment with no change failing now?
ERROR: failed to solve: process "/bin/bash -ol pipefail -c apt-get update && apt-get install -y --no-install-recommends ffmpeg imagemagick ghostscript gsfonts fonts-droid-fallback fonts-noto-mono fonts-urw-base35" did not complete successfully: exit code: 1
aptPkgs = [
"...",
"ffmpeg",
"imagemagick",
"ghostscript",
"gsfonts",
"fonts-droid-fallback",
"fonts-noto-mono",
"fonts-urw-base35"
]
This did not fail earlier..
issue on production, lf help.
103 replies