geodesign / django-raster

Django-raster allows you to create tiled map services (TMS) and raster map algebra end points for web maps. It is Python-based, and requires GeoDjango with a PostGIS backend.
BSD 3-Clause "New" or "Revised" License
96 stars 39 forks source link

SoftTimeLimitExceeded #42

Closed bluespider42 closed 4 years ago

bluespider42 commented 4 years ago

On several rasters I get a SoftTimeLimitExceeded Error from celery, is this normal and do I need to change a setting somewhere? The files are tiffs ~30MB

yellowcap commented 4 years ago

This has to do with your celery configuration, not with django-raster. The parsing of larger raster files can take a while so you should increase your timeout limits.

https://docs.celeryproject.org/en/latest/userguide/configuration.html?highlight=CELERYD_TASK_SOFT_TIME_LIMIT#std:setting-task_soft_time_limit

bluespider42 commented 4 years ago

Is there anyway to override this just for the raster tasks? all my other tasks should only take a few seconds. raster is the only one that should take much longer.