-
Notifications
You must be signed in to change notification settings - Fork 8
WC2-817: Optimise memory usage of celery task #2459
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
Merged
madewulf
merged 17 commits into
develop
from
WC2-817-Optimise-memory-usage-of-celery-task
Oct 21, 2025
Merged
WC2-817: Optimise memory usage of celery task #2459
madewulf
merged 17 commits into
develop
from
WC2-817-Optimise-memory-usage-of-celery-task
Oct 21, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…by new/old guidelines and ETL rule change (#2439) refs: WC2-817, WC2-823, WC2-820 Co-authored-by: Fleury <[email protected]>
madewulf
approved these changes
Oct 2, 2025
|
@butofleury I think this PR should also include a way to re-run the ETL on the whole data so that we can re-run it easily if an error is identified in the computation |
quang-le
requested changes
Oct 13, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see @madewulf 's comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
release
Should be released in production at next deploy
Released
user tested
Has already been tested on staging
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What problem is this PR solving? Explain here in one sentence.
Related JIRA tickets : WC2-817
Self proofreading checklist
Doc
Tell us where the doc can be found (docs folder, wiki, in the code...).
Changes
How to test
From a local instance with wfp coda database having South Sudan and/or Ethiopia and/or Nigeria data run ETL script to generate data and Celery configured, try to identify latest success task for:
'plugins.wfp.tasks.etl_ethiopia', 'plugins.wfp.tasks.etl_ng', 'plugins.wfp.tasks.etl_ssd'South Sudan:
select id,task_name,status,date_created from django_celery_results_taskresult where status='SUCCESS' and task_name='plugins.wfp.tasks.etl_ssd' order by id desc limit 1Nigeria:
select id,task_name,status,date_created from django_celery_results_taskresult where status='SUCCESS' and task_name='plugins.wfp.tasks.etl_ng' order by id desc limit 1Ethiopia:
select id,task_name,status,date_created from django_celery_results_taskresult where status='SUCCESS' and task_name='plugins.wfp.tasks.etl_ethiopia' order by id desc limit 1Try to update the
date_createdfor each of the 3 tasks.Then run the script to ETL for all data :
docker compose run iaso manage etl_ssd && docker compose run iaso manage etl_eth && docker compose run iaso manage etl_ngIt will generate analytics data for entities with the updated at = date_created.
Print screen / video
Upload here print screens or videos showing the changes.
Notes
Things that the reviewers should know:
Follow the Conventional Commits specification
The merge message of a pull request must follow the Conventional Commits specification.
This convention helps to automatically generate release notes.
Use lowercase for consistency.
Example:
Note that the Jira reference is preceded by a line break.
Both the line break and the Jira reference are entered in the Add an optional extended description… field.