Skip to content

Error with run weekly feature #242

Open
@josylad

Description

@josylad

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?

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