ZenPacks, JSON API, and Integrations

Registering custom zenjob type

  • 1.  Registering custom zenjob type

    Posted 7 days ago
    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'​