user3637478
user3637478

Reputation: 43

How to add parameters to function used in django cron jobs? (django-crontab)

CRONJOBS = [('* * * * *', 'tweets.cron.get_tweets')]

I can't add any parameter to this function and it doesn't work since it requires parameters. I wanna add something like

get_tweets(username)

Upvotes: 0

Views: 1595

Answers (1)

doniyor
doniyor

Reputation: 37894

what about this?

('* * * * *', 'tweets.cron.get_tweets', ['username'])

---> docs <---

Upvotes: 2

Related Questions