Skip to content

Commit

Permalink
[forest-fixes] adds commit hash (oops, its not plugged in anywhere) a…
Browse files Browse the repository at this point in the history
…t runtime of a forest task
  • Loading branch information
biblicabeebli committed Dec 12, 2023
1 parent 699676f commit 5a3d9dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion services/celery_forest.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
YEAR_MONTH_DAY)
from database.data_access_models import ChunkRegistry
from database.forest_models import ForestTask, SummaryStatisticDaily
from database.system_models import ForestVersion
from database.user_models_participant import Participant
from libs.celery_control import forest_celery_app, safe_apply_async
from libs.copy_study import format_study
Expand Down Expand Up @@ -137,7 +138,8 @@ def celery_run_forest(forest_task_id):
task.update_only( # Set metadata on the task to running
status=ForestTaskStatus.running,
process_start_time=timezone.now(),
forest_version=version
forest_version=version,
forest_commit=ForestVersion.get_singleton_instance().git_commit,
)

# ChunkRegistry time_bin hourly chunks are in UTC, and only have hourly datapoints for all
Expand Down

0 comments on commit 5a3d9dc

Please sign in to comment.