How Airflow track the task that is running in external apps

How Airflow track the task running in external app or service like AWS S3. If I am uploading file in s3 how does it ensure that file is uploaded or not ?