django-cron icon indicating copy to clipboard operation
django-cron copied to clipboard

Error with run weekly feature

Open josylad opened this issue 1 year ago • 3 comments

Hello, I am setting up a cronjob that is supposed to run on some weekdays using the example below.

class MyCronJob(CronJobBase):
    RUN_WEEKLY_ON_DAYS = [0, 6]
    RUN_AT_TIMES = ['6:30']
    schedule = Schedule(run_weekly_on_days=RUN_WEEKLY_ON_DAYS, run_at_times=RUN_AT_TIMES)

but I get this error "unexpected keyword argument 'run_weekly_on_days" when I try to run the cronjobs.

any help?

josylad avatar Oct 15 '23 12:10 josylad