1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Python] Scheduled Job is not running automatically In Frappe

Discussão em 'Python' iniciado por Stack, Setembro 13, 2024.

  1. Stack

    Stack Membro Participativo

    I created a custom application in Frappe and there I registered a funtion in cron of scheduler_events in the hooks.py which has to run every minute.

    now that when i migrated the job did apperead in the Scheduled Job Type and when i mannuly execute it, works perfect but it does not run automatically.

    my scheduler is on for the site for which i wrote the above function.

    I have searched a lot and tried every possible solutionn but I don’t know why it is not automatic.

    This is my site_config.json

    {
    "db_name": "",
    "db_password": "",
    "db_type": "mariadb",
    "developer_mode": 1,
    "domains": [
    {
    "domain": "",
    "ssl_certificate": "",
    "ssl_certificate_key": ""
    }
    ],
    "encryption_key": "",
    "maintenance_mode": 0,
    "scheduler_enabled": 1,
    "pause_scheduler": false
    }


    and the hooks.py file

    scheduler_events = {
    "cron": {
    "* * * * *": [
    "my_full_function_pathh"
    ]

    }

    }


    I tried every possible solutions and commands but the scheduler is not automatic.

    I have run this command bench --site sitename enable-scheduler and scheduler is enabled for my site but don't know why it is not automatic !

    My bench version is 15.

    Continue reading...

Compartilhe esta Página