等待直到AWS Glue搜寻器完成运行 [英] Wait until AWS Glue crawler has finished running

查看:45
本文介绍了等待直到AWS Glue搜寻器完成运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在文档中,我找不到任何方法来检查搜寻器的运行状态.我目前这样做的唯一方法是不断检查AWS以检查文件/表是否已创建.

In the documentation, I cannot find any way of checking the run status of a crawler. The only way I am doing it currently is constantly checking AWS to check if the file/table has been created.

在爬虫完成运行之前,还有更好的方法阻止吗?

Is there a better way to block until crawler finishes its run?

推荐答案

您可以使用boto3(或类似功能)来完成此操作.有get_crawler方法.您将在"LastCrawl"部分找到所需的信息

You can use boto3 (or similar) to do it. There is the get_crawler method. You will find needed information in "LastCrawl" section

https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/glue.html#Glue.Client.get_crawler

这篇关于等待直到AWS Glue搜寻器完成运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆