Skip to content

rq worker does not work after update #118

@widowmaker89

Description

@widowmaker89

Plugin version

v2.1.4

NetBox version

v4.1.2

Python version

3.9

Steps to Reproduce

rq worker does not work after updating the plugin to version 2.1.4 and all migrations

Expected Behavior

/usr/local/share/netbox/venv/lib/python3.11/site-packages/django/db/backends/utils.py:98: RuntimeWarning: Accessing the database during app initialization is discouraged. To fix this warning, avoid executing queries in AppConfig.ready() or when your app modules are imported.
warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
Traceback (most recent call last):
File "/usr/local/share/netbox/netbox/manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/usr/local/share/netbox/venv/lib/python3.11/site-packages/django/core/management/init.py", line 442, in execute_from_command_line
utility.execute()
File "/usr/local/share/netbox/venv/lib/python3.11/site-packages/django/core/management/init.py", line 416, in execute
django.setup()
File "/usr/local/share/netbox/venv/lib/python3.11/site-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/share/netbox/venv/lib/python3.11/site-packages/django/apps/registry.py", line 124, in populate
app_config.ready()
File "/usr/local/share/netbox/venv/lib/python3.11/site-packages/netbox_config_backup/init.py", line 49, in ready
elif lastjob.status in JobStatusChoices.ENQUEUED_STATE_CHOICES and lastjob.scheduled < timezone.now():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: '<' not supported between instances of 'NoneType' and 'datetime.datetime'

Observed Behavior

that it will work

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions