且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Google-cloud-dataflow:为什么管道使用 DirectRunner 运行两次?

更新时间:2023-12-04 12:17:46

Pipelinewith 语句运行管道.具体:

The with statement for Pipeline runs the pipeline. Specifically:

with beam.Pipeline(...) as p:
  [...code...]

相当于:

p = beam.Pipeline(...)
[...code...]
p.run().wait_until_finish()

参见实现.