Skip to content

Worker model error #339

@Garfieldas

Description

@Garfieldas

When using django-tasks-scheduler in a Dockerized Django application, the scheduler admin page throws with a deserialization error related to WorkerModel.init().
The error appears even though containers are running

Error message:
TypeError: WorkerModel.init() missing 8 required keyword-only arguments:
'name', 'queue_names', 'pid', 'hostname', 'ip_address', 'version', ...
Failed to deserialize

To Reproduce
Steps to reproduce the behavior:

  1. Created a custom management command to run scheduled task
  2. Attached it docker compose to run automatically
  3. Went to django admin
  4. Tasks 0
  5. Workers or Queus page
  6. Throws error inside debugger

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions