bcgov / GDX-Analytics

GDX-Analytics working space: microservices, tests, POCs, and other scripts
Apache License 2.0
9 stars 3 forks source link

Gdxdsd 6136 python38 #473

Closed doughon closed 1 month ago

doughon commented 1 month ago

This PR does the following:

Changes the python version used to 3.8.16

Review files

  1. Review the virtual environment files to make sure python is set to 3.8.16:

Testing instructions

  1. Login to EC2:
    $ awsmfa prod ######
    Generating new IAM STS Token ...
    STS Session Token generated and saved in profile mfa successfully.
    $ microservice_ssm
    $ /home/microservice/GDX-Analytics/maintenance/measure_tile_performance
  2. Run the following to test the code:
    $ /home/microservice/.local/bin/./pipenv run python3.8 measure_tile_performance.py hmbjQaHfeDbrtAsoCCBofP 2
    redshift cache is off
    RunTimes = [11.06, 1.26]
    Avg = 6.16
    Max = 11.06
    Min = 1.26
    Standard Deviation = 6.93
    redshift cache is on
ozdemirozcelik commented 1 month ago

works as expected