Skip to content

Commit

Permalink
chore: add some logs to export
Browse files Browse the repository at this point in the history
  • Loading branch information
pl-buiquang committed Jun 26, 2024
1 parent 5ee738c commit fc77ac6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion admin_cohort/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__title__ = 'Portail/Cohort360 API'
__version__ = '3.21.4'
__version__ = '3.21.5'
__author__ = 'Assistance Publique - Hopitaux de Paris, Département I&D'


Expand Down
2 changes: 2 additions & 0 deletions exporters/infra_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ def launch_export(self, params: dict) -> str:
export_type = params.pop('export_type')
params["environment"] = self.target_environment
endpoint = export_type == ExportTypes.CSV.value and self.csv_export_endpoint or self.hive_export_endpoint
_logger.info(f"Launching export to {self.url}{endpoint} with params: {params}")
response = requests.post(url=f"{self.url}{endpoint}",
params=params,
headers={'auth-token': self.bigdata_token})
response.raise_for_status()
return response.json().get('task_id')

def get_job_status(self, job_id: str, service: Services) -> JobStatus:
Expand Down

0 comments on commit fc77ac6

Please sign in to comment.