数据流作业完成后如何触发邮件到某个dl

时间:2021-04-21 15:35:03

I have a google cloud dataflow job, triggering at certain time interval. I need to trigger a mail after dataflow job completed with status of the job to certain mail id.

我有一个谷歌云数据流作业,在特定时间间隔触发。我需要在数据流作业完成后将作业状态触发到某个邮件ID。

Thanks, Damodar

谢谢,达莫达尔

1 个解决方案

#1


0  

You can do

你可以做

PipelineResult result = pipeline.run();
PipelineResult.State status = result.waitUntilFinish();
// send email

You can also include the metrics of the finished job in your email returned by result.metrics().

您还可以在result.metrics()返回的电子邮件中包含已完成作业的指标。

#1


0  

You can do

你可以做

PipelineResult result = pipeline.run();
PipelineResult.State status = result.waitUntilFinish();
// send email

You can also include the metrics of the finished job in your email returned by result.metrics().

您还可以在result.metrics()返回的电子邮件中包含已完成作业的指标。