You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/04/26 17:07:37 UTC

[GitHub] [airflow] ferruzzi commented on pull request #23256: Amazon Sagemaker Sample DAG and docs update

ferruzzi commented on PR #23256:
URL: https://github.com/apache/airflow/pull/23256#issuecomment-1110044278

   Please note:  The operators have `do_xcom_push=False` because they currently fail at the very end with the message "Object of type datetime is not JSON serializable".  This is a temporary workaround and can be fixed by adding json.dumps() to the return statements.  For example:  change `return self.hook.describe_endpoint_config(endpoint_info['EndpointConfigName'])` to `return json.dumps(self.hook.describe_endpoint_config(endpoint_info['EndpointConfigName']), cls=AirflowJsonEncoder)`.  
   
   I will submit a fix for those next, but that is outside the scope of this PR.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org