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

Heroku Scheduler #38

Closed
Neos21 opened this issue Nov 13, 2018 · 0 comments
Closed

Heroku Scheduler #38

Neos21 opened this issue Nov 13, 2018 · 0 comments

Comments

@Neos21
Copy link
Owner

Neos21 commented Nov 13, 2018

スクレイピングのバッチ処理は6時・11時半・17時半に実行されるよう Heroku Scheduler に登録した。
Heroku Scheduler は node bin/crawl.js のようにコマンドを用意できる。
依存する npm パッケージとかは、アプリをデプロイした時の作業ディレクトリがそのまま利用されるようなので、特にバッチ処理用に package.json を別に用意したりする必要はなかった。
Heroku Scheduler は UTC 表示なので、日本時間での実行には9時間ズラす必要がある点のみ注意。

@Neos21 Neos21 closed this as completed Nov 14, 2018
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

1 participant