Skip to content

TypeError: JobModel.__init__() missing 8 required keyword-only arguments: 'name', 'created_at', 'args', 'kwargs', 'queue_name', 'descript on', 'func_name', and 'meta' #279

Closed
@danjac

Description

@danjac

Describe the bug

When clicking on a Task detail in Django admin e.g. http://localhost/scheduler/task/3/change/ I get this error:

TypeError: JobModel.init() missing 8 required keyword-only arguments: 'name', 'created_at', 'args', 'kwargs', 'queue_name', 'descript on', 'func_name', and 'meta'

Note that tasks were imported e.g.

  {
    "model": "CronTaskType",
    "name": "My job",
    "callable": "my_job_callable",
    "callable_args": [],
    "callable_kwargs": [],
    "enabled": true,
    "queue": "default",
    "repeat": null,
    "at_front": false,
    "timeout": null,
    "result_ttl": null,
    "cron_string": "15 3 * * *",
    "scheduled_time": "2025-06-21T03:15:00+00:00",
    "interval": null,
    "interval_unit": "hours",
    "successful_runs": 0,
    "failed_runs": 0,
    "last_successful_run": null,
    "last_failed_run": null
  }

Desktop (please complete the following information):

  • OS: Ubuntu
  • Python 3.13
  • Django 5.2.3
  • django-tasks-scheduler 4.0.4

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