Remove matcher-neighbors preset, always declare have_lock var

pull/673/head
Piero Toffanin 2019-06-11 20:09:19 -04:00
rodzic c9e180e03c
commit 9558cc804c
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -111,12 +111,10 @@ def add_default_presets():
{'name': 'depthmap-resolution', 'value': '1000'},
{'name': 'texturing-nadir-weight', 'value': "28"}]})
Preset.objects.update_or_create(name='Point of Interest', system=True,
defaults={'options': [{'name': 'matcher-neighbors', 'value': "24"},
{'name': 'mesh-size', 'value': '600000'},
defaults={'options': [{'name': 'mesh-size', 'value': '600000'},
{'name': 'use-3dmesh', 'value': True}]})
Preset.objects.update_or_create(name='Forest', system=True,
defaults={'options': [{'name': 'min-num-features', 'value': "18000"},
{'name': 'matcher-neighbors', 'value': "21"},
{'name': 'texturing-data-term', 'value': "area"}]})
Preset.objects.update_or_create(name='DSM + DTM', system=True,
defaults={

Wyświetl plik

@ -60,6 +60,8 @@ def cleanup_tmp_directory():
@app.task
def process_task(taskId):
have_lock = False
try:
lock = redis_client.lock('task_lock_{}'.format(taskId))
have_lock = lock.acquire(blocking=False)