Cloudkibo / CloudKibo

CloudKibo
0 stars 0 forks source link

(Day status) Scheduler for removing status after 24-hours #517

Closed sumairasaeed closed 7 years ago

sumairasaeed commented 7 years ago

Here we need to code the logic for removing status after 24-hours of its upload.

sojharo commented 7 years ago

I have completed the work on this and pushed the code to server.

jekram commented 7 years ago

Thanks

sumairasaeed commented 7 years ago

When testing it was found that on sync, server is returning older statuses also which were uploaded before 24 hours. This means that statuses are not removed from server after 24 hours. I am reopening this issue. @sojharo kindly look into this.

sumairasaeed commented 7 years ago

I am cleaning the daystatus tables for testing purpose. FYI @sojharo @Assadbintahir

sojharo commented 7 years ago

I have worked on this issue. Tested this by reducing the expiry time to two minutes. I found that it is working perfectly. This might have happened due to server restart in the middle. So, we set the scheduler to run after 24 hours of any specified time. These schedulers are alive as long as server is running. Once server is restarted or crashed then they are closed.