Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

insert_job_from_cron_job TypeError: 'Job' object is not a mapping #100

@HaZman111

Description

@HaZman111

Cron jobs require service restart to execute

Newly created cron jobs do not run on their scheduled trigger. They only start executing correctly after restarting the service.

Error

INFO:     2025-10-15 02:08:00,002 - [apscheduler.executors.default] - Running job "insert_job_from_cron_job (trigger: cron[month='*', day='*', day_of_week='*', hour='*', minute='*/4'], next run at: 2025-10-15 02:12:00 CEST)" (scheduled at 2025-10-15 02:08:00+02:00)
ERROR:     2025-10-15 02:08:00,003 - [apscheduler.executors.default] - Job "insert_job_from_cron_job (trigger: cron[month='*', day='*', day_of_week='*', hour='*', minute='*/4'], next run at: 2025-10-15 02:12:00 CEST)" raised an exception
Traceback (most recent call last):
  File "/project/app/__pypackages__/3.10/lib/apscheduler/executors/base.py", line 181, in run_coroutine_job
    retval = await job.func(*job.args, **job.kwargs)
  File "/project/app/api/backend/job/cron_scheduling/cron_scheduling.py", line 55, in insert_job_from_cron_job
    {
TypeError: 'Job' object is not a mapping

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