TECHZEN Zenoss User Community ARCHIVE  

Registering custom zenjob type

Subject: Registering custom zenjob type
Author: Jay Stanley
Posted: 2021-11-24 11:39

Do you need to register a custom zenjob type now? I created a new job type and zenjobs drops it saying it is not registered

2021-11-24 16:29:47.065 ERROR celery.worker.consumer: worker=0/MainProcess: Received unregistered task of type 'ZenPacks.NWN.CiscoVPN.jobs.DeleteOldVPNComponentsJob'.
The message has been ignored and discarded.

Did you remember to import the module containing this task?
Or maybe you are using relative imports?
Please see http://bit.ly/gLye1c for more information.

The full contents of the message body was:
{'utc': True, 'task': 'ZenPacks.NWN.CiscoVPN.jobs.DeleteOldVPNComponentsJob', 'retries': 0, 'errbacks': None, 'args': [], 'expires': None, 'timelimit': [None, None], 'callbacks': None, 'chord': None, 'taskset': None, 'kwargs': {}, 'eta': None, 'id': 'ac7e02d0-236e-4911-af0d-098d12e70869'} (289b)
Traceback (most recent call last):
  File "/opt/zenoss/lib/python2.7/site-packages/celery/worker/consumer.py", line 465, in on_task_received
    strategies[type_](message, body,
KeyError: 'ZenPacks.NWN.CiscoVPN.jobs.DeleteOldVPNComponentsJob'​


------------------------------
jstanley
------------------------------


< Previous
Zenoss 3.2.1 developer guide
  Next
Zenpack for Puppet to Monitor Windows and Linux Devices
>