Skip to content

Commit

Permalink
Merge pull request #277 from uw-it-aca/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
jlaney authored Dec 10, 2024
2 parents ae75ed3 + 39c8deb commit 825c426
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 3 additions & 2 deletions data_aggregator/report_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,12 @@ def upload_csv_file(self, csv_data):
aws_secret_access_key=settings.EXPORT_AWS_SECRET_ACCESS_KEY)

try:
s3client.put_object(
response = s3client.put_object(
Body=csv_data,
Bucket=settings.EXPORT_AWS_STORAGE_BUCKET_NAME,
Key=settings.EXPORT_AWS_DEFAULT_FILE_NAME,
ContentType="text/csv",
)
logger.info(f"CSV upload completed, response: {response}")
except Exception as ex:
logger.error(f"CSV write failed: {ex}")
logger.error(f"CSV upload failed: {ex}, response: {response}")
7 changes: 6 additions & 1 deletion docker/prod-values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,14 @@ cronjob:
args: ["create_jobs", "participation"]
# run build subaccount activity report job
- name: subacct-activity
schedule: "0 21 * * 6" # At 2:00pm PDT on Saturday
schedule: "10 21 * * 6" # At 2:10pm PDT on Saturday
command: ["/scripts/management_command.sh"]
args: ["create_and_run_jobs", "build_subaccount_activity_report"]
# run export subaccount activity report job
- name: export-subacct-activity
schedule: "59 23 * * 6" # At 4:59pm PDT on Saturday
command: ["/scripts/management_command.sh"]
args: ["create_and_run_jobs", "export_subaccount_activity_report"]
# add rad file job upfront so that it is created for the correct week
- name: add-crt-rad-data
schedule: "0 21 * * 6" # At 2:00pm PDT on Saturday
Expand Down

0 comments on commit 825c426

Please sign in to comment.