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

[Optional]support cron task #13

Open
halfcrazy opened this issue Jun 11, 2015 · 1 comment
Open

[Optional]support cron task #13

halfcrazy opened this issue Jun 11, 2015 · 1 comment

Comments

@halfcrazy
Copy link
Member

Syntax may looks like this:

@cron((Seconds,Minutes,Hours,DayofMonth,Month,DayofWeek))
def fn():
    pass

or unix like syntax like this:

@cron('* * * * *')
def fn():
    pass

In the cron decorated function, use slacker to send messages.
So, the bot can send daily reports.

@halfcrazy halfcrazy changed the title support cron task [Optional]support cron task Jun 11, 2015
@halfcrazy
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant