Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'pattern_model' #471

Closed
VargBurz opened this Issue Mar 15, 2019 · 0 comments

Comments

Projects
None yet
2 participants
@VargBurz
Copy link
Member

VargBurz commented Mar 15, 2019

  File "C:\Users\VargB\git\hastic-server\analytics\bin\..\analytics\analytic_unit_manager.py", line 94, in handle_analytic_task
    result_payload = await self.__handle_analytic_task(task)
  File "C:\Users\VargB\git\hastic-server\analytics\bin\..\analytics\analytic_unit_manager.py", line 88, in __handle_analytic_task
    return await worker.do_detect(data, payload['cache'])
  File "C:\Users\VargB\git\hastic-server\analytics\bin\..\analytics\analytic_unit_worker.py", line 34, in do_detect
    return self._detector.detect(data, cache)
  File "C:\Users\VargB\git\hastic-server\analytics\bin\..\analytics\detectors\pattern_detector.py", line 53, in detect
    detected = self.model.detect(dataframe, cache)
  File "C:\Users\VargB\git\hastic-server\analytics\bin\..\analytics\models\model.py", line 93, in detect
    result = self.do_detect(dataframe)
  File "C:\Users\VargB\git\hastic-server\analytics\bin\..\analytics\models\general_model.py", line 68, in do_detect
    pat_data = self.state['pattern_model']
KeyError: 'pattern_model'

Step to reproduce:
Create about 10 analytic units, enable all webhooks.
There will be KeyError in analytics logs

@VargBurz VargBurz added the analytics label Mar 15, 2019

@VargBurz VargBurz self-assigned this Mar 15, 2019

@jonyrock jonyrock added bug ! labels Mar 17, 2019

VargBurz added a commit that referenced this issue Mar 19, 2019

@rozetko rozetko closed this in #476 Mar 19, 2019

rozetko added a commit that referenced this issue Mar 19, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.