Skip to content

Commit

Permalink
Merge pull request #991 from TeachMeTW/_get_and_store_range-timings
Browse files Browse the repository at this point in the history
added instrumentation to the _get_and_store_range
  • Loading branch information
shankari authored Nov 4, 2024
2 parents b15fcb9 + 7b11c0d commit c8e8080
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion emission/pipeline/intake_stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,13 @@ def run_intake_pipeline_for_user(uuid, skip_if_no_new_data):
esds.store_pipeline_time(uuid, ecwp.PipelineStages.CREATE_COMPOSITE_OBJECTS.name,
time.time(), crt.elapsed)

_get_and_store_range(uuid, "analysis/composite_trip")
with ect.Timer() as gsr:
logging.info("*" * 10 + "UUID %s: generating store and range " % uuid + "*" * 10)
print(str(arrow.now()) + "*" * 10 + "UUID %s: generating store and range " % uuid + "*" * 10)
_get_and_store_range(uuid, "analysis/composite_trip")

esds.store_pipeline_time(uuid, 'GENERATE_STORE_AND_RANGE',
time.time(), gsr.elapsed)

def _get_and_store_range(user_id, trip_key):
ts = esta.TimeSeries.get_time_series(user_id)
Expand Down

0 comments on commit c8e8080

Please sign in to comment.