Traceback (most recent call last):
File "/opt/enhydris-openhi/venv/lib/python3.7/site-packages/django/db/models/query.py", line 538, in get_or_create
return self.get(**kwargs), False
File "/opt/enhydris-openhi/venv/lib/python3.7/site-packages/django/db/models/query.py", line 408, in get
self.model._meta.object_name
enhydris.models.Timeseries.DoesNotExist: Timeseries matching query does not exist.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/enhydris-openhi/venv/lib/python3.7/site-packages/celery/app/trace.py", line 385, in trace_task
R = retval = fun(*args, **kwargs)
File "/opt/enhydris-openhi/venv/lib/python3.7/site-packages/celery/app/trace.py", line 650, in __protected_call__
return self.run(*args, **kwargs)
File "/opt/enhydris-openhi/enhydris_autoprocess/tasks.py", line 8, in execute_auto_process
AutoProcess.objects.get(id=auto_process_id).as_specific_instance.execute()
File "/opt/enhydris-openhi/enhydris_autoprocess/models.py", line 29, in execute
result = self.process_timeseries()
File "/opt/enhydris-openhi/enhydris_autoprocess/models.py", line 462, in process_timeseries
self.source_end_date = self.htimeseries.data.index[-1]
File "/opt/enhydris-openhi/enhydris_autoprocess/models.py", line 36, in htimeseries
start_date=self._get_start_date()
File "/opt/enhydris-openhi/enhydris_autoprocess/models.py", line 61, in _get_start_date
start_date = self.target_timeseries.end_date
File "/opt/enhydris-openhi/enhydris_autoprocess/models.py", line 437, in target_timeseries
type=Timeseries.AGGREGATED, time_step=self.target_time_step
File "/opt/enhydris-openhi/venv/lib/python3.7/site-packages/django/db/models/fields/related_descriptors.py", line 674, in get_or_create
return super(RelatedManager, self.db_manager(db)).get_or_create(**kwargs)
File "/opt/enhydris-openhi/venv/lib/python3.7/site-packages/django/db/models/manager.py", line 82, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/enhydris-openhi/venv/lib/python3.7/site-packages/django/db/models/query.py", line 541, in get_or_create
return self._create_object_from_params(kwargs, params)
File "/opt/enhydris-openhi/venv/lib/python3.7/site-packages/django/db/models/query.py", line 575, in _create_object_from_params
obj = self.create(**params)
File "/opt/enhydris-openhi/venv/lib/python3.7/site-packages/django/db/models/query.py", line 422, in create
obj.save(force_insert=True, using=self.db)
File "/opt/enhydris-openhi/enhydris/models.py", line 851, in save
check_time_step(self.time_step)
File "/opt/enhydris-openhi/enhydris/models.py", line 31, in check_time_step
_check_nonempty_time_step(time_step)
File "/opt/enhydris-openhi/enhydris/models.py", line 37, in _check_nonempty_time_step
raise ValueError('"{}" is not a valid time step'.format(time_step))
ValueError: "1h" is not a valid time step
In Celery worker: