通过 GCP 云调度程序传递动态值

发布于 2025-01-17 18:59:35 字数 377 浏览 4 评论 0原文

我需要使用云调度程序的随机/动态job_names触发Google DataFlow作业。我能够传递静态作业名称并通过在调度程序主体中传递数据流。有没有办法通过调度程序动态设置此作业名称?

如果有一种方法可以设置Current_timestamp或一些随机_numbers会有所帮助。

我知道我们也可以通过云功能触发数据流。但是试图避免这里的服务编号。

我拥有的:

{“ job_name”:“ test-run-df-job”}

我需要的内容:

{“ job_name”:“ test-run-df-job” + current_time_time( )}

感谢您的任何帮助。

I need to trigger the Google dataflow jobs with the random/dynamic job_names from the cloud scheduler. I am able to pass the static job name and trigger the Dataflow by passing it in the scheduler body. Is there a way to dynamically set this job name through the scheduler?

If there is a way to set the current_timestamp or some random_numbers that would help.

I am aware that we can trigger the dataflow through the cloud function as well. But trying to avoid the no.of services here.

what I have:

{ "job_name": "test-run-df-job" }

What I need:

{ "job_name": "test-run-df-job" + CURRENT_TIME() }

Thank you for any help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

幻想少年梦 2025-01-24 18:59:35

您无法在 Cloud Scheduler 中添加动态值。您可以想象其他服务(例如云工作流)无需编写任何代码(例如使用云函数)即可进行添加,然后调用您的数据流

You can't add dynamic value in Cloud Scheduler. You can imagine other services, like Cloud Workflows to do that addition without any code to write (like with a Cloud Functions for instance) and then invoke your Dataflow

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文