edx-enterprise-data 5.5.0__py3-none-any.whl → 5.5.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: edx-enterprise-data
3
- Version: 5.5.0
3
+ Version: 5.5.1
4
4
  Summary: Enterprise Reporting
5
5
  Home-page: https://github.com/openedx/edx-enterprise-data
6
6
  Author: edX
@@ -1,4 +1,4 @@
1
- enterprise_data/__init__.py,sha256=fxxzzCtLbDfSsBJTX_Pwg5EawRayT0mkodwq9mAHoOE,123
1
+ enterprise_data/__init__.py,sha256=dC_EnL5TAyJtgKEiiE010yYxoMn6H4OL7KrAtv41FHo,123
2
2
  enterprise_data/apps.py,sha256=aF6hZwDfI2oWj95tUTm_2ikHueQj-jLj-u0GrgzpsQI,414
3
3
  enterprise_data/clients.py,sha256=GvQupy5TVYfO_IKC3yzXSAgNP54r-PtIjidM5ws9Iks,3947
4
4
  enterprise_data/constants.py,sha256=pS65L4mimz7hd_cLml_mXdU0GJ7hs0X8UQ8MNjC5hCU,234
@@ -111,7 +111,7 @@ enterprise_data_roles/tests/test_models.py,sha256=wJv7ywk0BSbjlW_U142h0aFxZleAHy
111
111
  enterprise_reporting/__init__.py,sha256=yQO9ureIxFnl-1a_34H53elDwuAzXrSmhLlzqqD2SJ0,112
112
112
  enterprise_reporting/delivery_method.py,sha256=bG-JCGhrK3nuC3P6D88zBRSwDJCbaDxN35nNlXzvoRM,4813
113
113
  enterprise_reporting/external_resource_link_report.py,sha256=-KEB8jLkx4KFTTcoB1eznKte38XoAkya_VoFGUORz6o,8066
114
- enterprise_reporting/reporter.py,sha256=LNUsQr_uToVT1PM4ckTOhWAFdidpKleLQ1bhpLKJbV4,13707
114
+ enterprise_reporting/reporter.py,sha256=3wI46qH-CNCUC5r9-Eme1mQdMjwEsFk9myRb-ajzJkM,13807
115
115
  enterprise_reporting/send_enterprise_reports.py,sha256=usseqP7tG0oyG7goaBA-kz2nQnU6wGLOIv0jlfq_4Lg,4753
116
116
  enterprise_reporting/utils.py,sha256=7t0IUeaLVxHmunLhYU6EVKrmizY_fquwUf3xdHWlkAE,13860
117
117
  enterprise_reporting/clients/__init__.py,sha256=Y2XqHWyEfgHBWnfwdO1P-MWLVqCivzWIJFm_lQFUMyI,5122
@@ -131,8 +131,8 @@ enterprise_reporting/tests/test_send_enterprise_reports.py,sha256=WtL-RqGgu2x5PP
131
131
  enterprise_reporting/tests/test_utils.py,sha256=7Y5GmeibiC8Q5kIpYuIAkFpeyIDRs2U3ItxsabhR1zM,9493
132
132
  enterprise_reporting/tests/test_vertica_client.py,sha256=-R2yNCGUjRtoXwLMBloVFQkFYrJoo613VCr61gwI3kQ,140
133
133
  enterprise_reporting/tests/utils.py,sha256=xms2LM7DV3wczXEfctOK1ddel1EE0J_YSr17UzbCDy4,1401
134
- edx_enterprise_data-5.5.0.dist-info/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
135
- edx_enterprise_data-5.5.0.dist-info/METADATA,sha256=esdAfuThvK2_gzjUr0sfNtaxzyn4K_GtIfTsb9_jbdc,1474
136
- edx_enterprise_data-5.5.0.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
137
- edx_enterprise_data-5.5.0.dist-info/top_level.txt,sha256=f5F2kU-dob6MqiHJpgZkFzoCD5VMhsdpkTV5n9Tvq3I,59
138
- edx_enterprise_data-5.5.0.dist-info/RECORD,,
134
+ edx_enterprise_data-5.5.1.dist-info/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
135
+ edx_enterprise_data-5.5.1.dist-info/METADATA,sha256=PCX9-g2TUh3yRC4MaiPPAWFquLMPTyUuNnVH-mMckNo,1474
136
+ edx_enterprise_data-5.5.1.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
137
+ edx_enterprise_data-5.5.1.dist-info/top_level.txt,sha256=f5F2kU-dob6MqiHJpgZkFzoCD5VMhsdpkTV5n9Tvq3I,59
138
+ edx_enterprise_data-5.5.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.2)
2
+ Generator: bdist_wheel (0.41.3)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -2,4 +2,4 @@
2
2
  Enterprise data api application. This Django app exposes API endpoints used by enterprises.
3
3
  """
4
4
 
5
- __version__ = "5.5.0"
5
+ __version__ = "5.5.1"
@@ -20,7 +20,12 @@ from enterprise_reporting.clients.enterprise import (
20
20
  from enterprise_reporting.clients.s3 import S3Client
21
21
  from enterprise_reporting.clients.vertica import VerticaClient
22
22
  from enterprise_reporting.delivery_method import SFTPDeliveryMethod, SMTPDeliveryMethod
23
- from enterprise_reporting.utils import decrypt_string, extract_catalog_uuids_from_reporting_config, generate_data
23
+ from enterprise_reporting.utils import (
24
+ decrypt_string,
25
+ extract_catalog_uuids_from_reporting_config,
26
+ generate_data,
27
+ retry_on_exception,
28
+ )
24
29
 
25
30
  LOGGER = logging.getLogger(__name__)
26
31
  NOW = datetime.datetime.now().strftime("%Y-%m-%d")
@@ -115,6 +120,7 @@ class EnterpriseReportSender:
115
120
  """Get a full path to the report file that can be modified with arbitrary formatting."""
116
121
  return '_{}.'.join(self.data_report_file_name.rsplit('.'))
117
122
 
123
+ @retry_on_exception(max_retries=2, delay=1, backoff=2)
118
124
  def send_enterprise_report(self):
119
125
  """Generate the report file of the appropriate type and send it through the configured delivery method."""
120
126
  LOGGER.info(f'Starting process to send report to {self.enterprise_customer_name}')