def schedule_jobs(api, api_twitter):
schedule.every(settings.PULL_REQUEST_POLLING_INTERVAL_SECONDS).seconds.do(
lambda: poll_pull_requests(api, api_twitter))
schedule.every(settings.ISSUE_COMMENT_POLLING_INTERVAL_SECONDS).seconds.do(
lambda: poll_read_issue_comments(api))
schedule.every(settings.ISSUE_CLOSE_STALE_INTERVAL_SECONDS).seconds.do(
lambda: poll_issue_close_stale(api))
# Call manually the first time, so that we are guaranteed this will run
# at least once in the interval...
poll_issue_close_stale(api)
评论列表
文章目录