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

統計スクリプトの実行間隔を「毎月1日→毎週月曜日」に変更したい #193

Closed
yasulab opened this issue Nov 8, 2017 · 0 comments · Fixed by #226
Closed
Labels
急ぎじゃないよ Make something better but not rushed.

Comments

@yasulab
Copy link
Member

yasulab commented Nov 8, 2017

現状では毎月1日に統計スクリプトが実行・更新されるようになっている。CoderDojo は毎週末に行われるので、毎週月曜日に統計が取れると、統計情報がほぼ最新に近い状態になる。

ただし、毎週実行するためには統計スクリプトを変更する必要があり、また、今すぐ対応する必要はないので、どこかの段階でゆっくりと対応できれば良さそうです ;)

cf. #184 (comment)

設定ありがとうございます! 😸 これで毎月実行できそうですね ;)

ちなみに [ $(date +%u) = 1 ] && bundle exec rails statistics:aggregation のように毎週実行する場合は、統計スクリプトの方を変更する必要がある、という認識で大丈夫でしょうか? 🤔


そうですね、APIを叩く時のパラメータで年月による絞り込みを行っているので、絞り込み範囲を変える必要があります。connpassだけ範囲指定ではなく、年月日の複数指定にする調整も必要そうですね。
cf: https://connpass.com/about/api/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
急ぎじゃないよ Make something better but not rushed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant