英文:
How to execute another job after a background job?
问题
我想执行以下任务:
-
使用
scheduleJob在特定时间运行job1,例如09:25分,并将参数 onComplete 设置为function1; -
在
function1中定义func2,并调用submitJobEx提交job2,其中执行function2。 -
在
submitJobEx后,使用getJobReturn获取job2的输出。 -
继续运行
job3。
我该如何实现这个工作流程?
英文:
I want to execute the following jobs:
-
Use
scheduleJobto runjob1at a specific time, such as 09:25m, and
set the parameter onComplete tofunction1; -
Within
function1, define func2 and callsubmitJobExto submitjob2
wherefunction2is executed. -
After
submitJobEx, usegetJobReturnto get the output ofjob2. -
Continue running
job3.
How can I achieve the workflow?
答案1
得分: 1
在DolphinDB中,不支持在一个方法中定义另一个方法,例如在function1内部定义function2。建议使用类似Airflow的调度框架来安排和管理工作流程。对于复杂的工作流程,应使用外部调度系统。DolphinDB支持Airflow插件。
英文:
Defining one method within another method, such as defining function2 within function1, is not supported in DolphinDB. It is recommended to use a scheduling framework like Airflow to schedule and manage workflows. For complex workflows, an external scheduling system should be used. DolphinDB supports the Airflow plugin.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。


评论