iMMAP / DRR-datacenter

GNU General Public License v3.0
0 stars 3 forks source link

Update Drought Data #16

Closed rafinkanisa closed 2 years ago

rafinkanisa commented 2 years ago

As part of re-activating the ASDC to humanitarian organization, we'll have to update all of the outdated data in ASDC to the most recent one

TODO :

dodiws commented 2 years ago
mishaker commented 2 years ago

@dodiws please include the script you wrote to update the db here in this issue. thanks

dodiws commented 2 years ago

This commit add filter_woys and max_loop param on drought update function to better control update process.

from geodb.tasks import downloadtif_task
downloadtif_task.delay()

That script update latest 1 week drought data. It should be called using celery call but not working, still investigating.

dodiws commented 2 years ago

After tweak celery setting, drought update for latest 1 week can be called using:

./manage.py celery call geodb.tasks.downloadtif_task

The task will be carried on asynchronously by celery worker process therefore ssh connection can be closed. Monitoring the log for progress:

tail -f /home/ubuntu/celery_worker.log

Updating about 1 year of drought data in progress.

rafinkanisa commented 2 years ago

Thank you @dodiws Will keep the issue in the progress stage until the data update is finished

dodiws commented 2 years ago

Finished updating 46 weeks of drought data, the next weekly update will be done manually every Monday because new data is published every Sunday from the data source.