Skip to content

daily task only runs with --force #9

@luisnabais

Description

@luisnabais

Hi there.

I need some help, I think this will be very fast for you to help.
I've installed django-periodically 0.3.0 using pip, yesterday.

I added 'periodically' to INSTALLED_APPS.
I have an app called corporate, in which I created a periodictasks.py file, in which I have:

from periodically.decorators import *

import logging
import os

@daily(hour=10, minute=58)
def check_domain_expiration_task():
"<task_code_here>"

and in crontab I have:
57 10 * * * /usr/bin/python /usr/local/aurora-framework/manage.py runtasks

Nothing runs.
I've tried the same time in both, earlier time in each one and still nothing.
If I run manually "python manage.py runtasks", nothing happens, but if I run "python manage.py runtasks --force", the task runs and works correctly.

Any hint on what is causing this issue?

Thanks a lot for your time and help.
Best regards,
Luís Nabais

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions