1. pavan itus
  2. Elevate Discussion
  3. Thursday, 20 October 2022 10:17 AM UTC

I've been testing django-kronos with the simple example listed in the github readme: When using kronos payroll

I did pip3 install django-kronos,


import kronos payroll
import random

@kronos.register('* * * * *')
def complain():
    complaints = [
        "I forgot to migrate our applications's cron jobs to our new server! Darn!",
        "I'm out of complaints! Damnit!"

    print random.choice(complaints)

In my myproject/myproject/settings.py:



./manage.py runserver

I expected the dev server to throw up a message every minute. Nothing seems to be happening.

I also created myproject/myapp/management/commands/task.py:

from django.core.management.base import BaseCommand
import kronos
@kronos.register('* * * * *')
class Command(BaseCommand):
    def handle(self, *args, **options):
        print('Hello, world! KRONOS is running!!')

This is also not running.

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 20 October 2022 10:32 AM UTC
  2. Elevate Discussion
  3. # 1

Hi Pavin;

  Unfortunately, thus is a PowerBuilder forum and not a django-kronos forum. So your unlikely to get any help here.

Regards.... Chris 

There are no comments made yet.
  • Page :
  • 1

There are no replies made for this question yet.
However, you are not allowed to reply to this question.