Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run cron once a week / a month #12

Closed
okrutny opened this issue Oct 11, 2012 · 1 comment
Closed

Run cron once a week / a month #12

okrutny opened this issue Oct 11, 2012 · 1 comment

Comments

@okrutny
Copy link

okrutny commented Oct 11, 2012

Currently it's not possible to run cron on a specified date and hour every month, i.e. issuing invoices 15th of a month. It would be useful, if one could specify "run cron every 15th of a month at 3 am". I could be provided in a similar way to RUN_AT_TIMES, for example RUN_AT_DAYS_OF_MONTH=['15:03:00'], where first part of string is a day of a month, second part is an hour and last part is minutes.

Going further, it would be also useful, if one could specify "run cron every monday at 3 am". In that case RUN_AT_DAYS_OF_WEEK could be used with strings like 'Mon:03:00', where first part is a day of a week, the rest is hour and minutes.

To provide more flexibility, also management command running specified cron class could be added, so it would be possible to specify in crontab to run that cron at that time without use of runcrons management command.

chachra pushed a commit that referenced this issue Feb 25, 2013
…(s). The specified cron(s) will still respect the timing / previous run related settings. See README for changelog/details.
@chachra
Copy link
Member

chachra commented Feb 25, 2013

You can now run with specific cron names in the management command call.

@chachra chachra closed this as completed Feb 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants