Skip to content
This repository has been archived by the owner on Jul 24, 2020. It is now read-only.

StartupTask fails with exception #94

Closed
dArignac opened this issue Jan 31, 2016 · 1 comment
Closed

StartupTask fails with exception #94

dArignac opened this issue Jan 31, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@dArignac
Copy link
Member

[2016-01-31 07:07:39,999: ERROR/MainProcess] Task price_monitor.product_advertising_api.tasks.StartupTask[c0f7481a-769f-4c7a-9143-9e34aee165c4] raised unexpected: KeyError('price_monitor.product_advertising_api.tasks.FindProductsToSynchronizeTask',)
Traceback (most recent call last):
  File ".env/lib/python3.4/site-packages/celery/app/trace.py", line 240, in trace_task
    R = retval = fun(*args, **kwargs)
  File ".env/lib/python3.4/site-packages/celery/app/trace.py", line 438, in __protected_call__
    return self.run(*args, **kwargs)
  File ".env/lib/python3.4/site-packages/price_monitor/product_advertising_api/tasks.py", line 75, in run
    c = dict(Counter([x.name for x in scheduled_tasks]).most_common())[FindProductsToSynchronizeTask.name]
KeyError: 'price_monitor.product_advertising_api.tasks.FindProductsToSynchronizeTask'
@dArignac dArignac added the bug label Jan 31, 2016
@dArignac dArignac self-assigned this Jan 31, 2016
@dArignac
Copy link
Member Author

This happens if the celery task queue is empty.

dArignac added a commit that referenced this issue Jan 31, 2016
@dArignac dArignac added this to the v0.6.1 milestone Jan 31, 2016
dArignac added a commit that referenced this issue Jan 31, 2016
dArignac added a commit that referenced this issue Jan 31, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant