通过 GCP 云调度程序传递动态值
我需要使用云调度程序的随机/动态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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您无法在 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