kossiitkgp / kwoc-2018

Web app for Kharagpur Winter of Code, 2018
https://kwoc.kossiitkgp.org
MIT License
0 stars 0 forks source link

Add cron job for extracting user activity. #21

Closed Ayushk4 closed 5 years ago

Ayushk4 commented 5 years ago

Since we will be having a user login, and a dashboard, we must regularly update the activity of the user. A crob job has to be scheduled to extract the same from github API (REST or GraphQL). The rate limit for the API has to be taken into consideration for setting the frequency of job. As for REST it has 5000 per hour limit for basic authentication.

Ayushk4 commented 5 years ago

This issue is low priority and can be done by the end of this month as leaderboard gets active after 7th and coding period begins on 1st.

shreyas-kowshik commented 5 years ago

https://github.com/kossiitkgp/kwoc/pull/100

themousepotato commented 5 years ago

@shreyas-kowshik I guess we can do this in the app.py itself. See https://code.tutsplus.com/tutorials/managing-cron-jobs-using-python--cms-28231

Ayushk4 commented 5 years ago

105

thealphadollar commented 5 years ago

I'll close this when we've added the cron action to server.

Ayushk4 commented 5 years ago

Okay :+1:

thealphadollar commented 5 years ago

Cronjob has been setup.