You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/08/31 06:54:18 UTC

[GitHub] [dolphinscheduler] praynise opened a new issue #6070: can i complement data by calling api?

praynise opened a new issue #6070:
URL: https://github.com/apache/dolphinscheduler/issues/6070


   can i complement data by calling api?i found start-process-instance api but i can not complement data with this api,i set parameter scheduleTime with 2021-08-01 00:00:00,2021-08-31 00:00:00,but still the job just run once.
   请问我可以通过调用http请求利用API来追数吗?我试了一下用start-process-instance来追数,将scheduleTime参数设置为2021-08-01 00:00:00,2021-08-31 00:00:00,但是却还是仅调起了最新一天,请指导,非常感谢~
   **Which version of DolphinScheduler:**
    -[1.3.6]


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #6070: can i complement data by calling api?

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #6070:
URL: https://github.com/apache/dolphinscheduler/issues/6070#issuecomment-908951817






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [dolphinscheduler] praynise commented on issue #6070: can i complement data by calling api?

Posted by GitBox <gi...@apache.org>.
praynise commented on issue #6070:
URL: https://github.com/apache/dolphinscheduler/issues/6070#issuecomment-908992572


   @Squidyu serial,i must run my job day by day.and before next day,and i use system.biz.date as my batch date
   我一般使用串行补数,并使用system.biz.date作为我的跑批输入参数


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [dolphinscheduler] Squidyu commented on issue #6070: can i complement data by calling api?

Posted by GitBox <gi...@apache.org>.
Squidyu commented on issue #6070:
URL: https://github.com/apache/dolphinscheduler/issues/6070#issuecomment-908973617


   Are you parallel complement or serial?
   Parallel complement generates multiple process instances and then runs down;
   The serial complement produces only one process instance, but multiple task instances running down
   并行补数会产生多个流程实例 然后向下运行;
   串行补数只产生一个流程实例,但是产生多个任务实例向下运行


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [dolphinscheduler] praynise closed issue #6070: can i complement data by calling api?

Posted by GitBox <gi...@apache.org>.
praynise closed issue #6070:
URL: https://github.com/apache/dolphinscheduler/issues/6070


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [dolphinscheduler] praynise commented on issue #6070: can i complement data by calling api?

Posted by GitBox <gi...@apache.org>.
praynise commented on issue #6070:
URL: https://github.com/apache/dolphinscheduler/issues/6070#issuecomment-909800085


   @Squidyu woo,thank you very very much,it worked!
   哇偶,一句话点醒梦中人,实在是太感谢了~


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [dolphinscheduler] praynise closed issue #6070: can i complement data by calling api?

Posted by GitBox <gi...@apache.org>.
praynise closed issue #6070:
URL: https://github.com/apache/dolphinscheduler/issues/6070


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [dolphinscheduler] Squidyu commented on issue #6070: can i complement data by calling api?

Posted by GitBox <gi...@apache.org>.
Squidyu commented on issue #6070:
URL: https://github.com/apache/dolphinscheduler/issues/6070#issuecomment-909795017


   The way you start is to run, not complement. Note that you are missing the commandtype parameter, and the parameter value should be 'COMPLEMENT_DATA'
   你启动的方式是运行不是补数哦 注意你少了CommandType参数,参数值应该为COMPLEMENT_DATA


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [dolphinscheduler] Squidyu commented on issue #6070: can i complement data by calling api?

Posted by GitBox <gi...@apache.org>.
Squidyu commented on issue #6070:
URL: https://github.com/apache/dolphinscheduler/issues/6070#issuecomment-909004425


   The serial replenishment will only generate one process instance, but the task instances inside will run according to the replenishment date. For example, the same task, 2021-08-01 00:00:00,2021-08-31 00:00:00 should run 30 times and generate 30 task instances with the same name
   
   串行补数只会产生一个流程实例,但是里面的任务实例会根据补数日期进行补数运行,比如说同一个任务,2021-08-01 00:00:00,2021-08-31 00:00:00应该是会运行30次,产生30个同名任务实例


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [dolphinscheduler] Squidyu commented on issue #6070: can i complement data by calling api?

Posted by GitBox <gi...@apache.org>.
Squidyu commented on issue #6070:
URL: https://github.com/apache/dolphinscheduler/issues/6070#issuecomment-909014425






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [dolphinscheduler] Squidyu commented on issue #6070: can i complement data by calling api?

Posted by GitBox <gi...@apache.org>.
Squidyu commented on issue #6070:
URL: https://github.com/apache/dolphinscheduler/issues/6070#issuecomment-909014425


   #6007 Maybe it will help you


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [dolphinscheduler] praynise commented on issue #6070: can i complement data by calling api?

Posted by GitBox <gi...@apache.org>.
praynise commented on issue #6070:
URL: https://github.com/apache/dolphinscheduler/issues/6070#issuecomment-909790067






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #6070: can i complement data by calling api?

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #6070:
URL: https://github.com/apache/dolphinscheduler/issues/6070#issuecomment-908951952


   Hi:
   * Thank you for your feedback, we have received your issue, Please wait patiently for a reply.
   * In order for us to understand your request as soon as possible, please provide detailed information、version or pictures.
   * If you haven't received a reply for a long time, you can subscribe to the developer's email,Mail subscription steps reference https://dolphinscheduler.apache.org/zh-cn/community/development/subscribe.html ,Then write the issue URL in the email content and send question to dev@dolphinscheduler.apache.org.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [dolphinscheduler] praynise commented on issue #6070: can i complement data by calling api?

Posted by GitBox <gi...@apache.org>.
praynise commented on issue #6070:
URL: https://github.com/apache/dolphinscheduler/issues/6070#issuecomment-909790067


   @Squidyu Hi,i have upgrade dolphinscheduler to 1.3.8,but i can still not complement data by calling http request. here is my code
   ```
   package dolphinAPI
   
   import org.apache.http.client.methods.HttpPost
   import org.apache.http.client.utils.URIBuilder
   import org.apache.http.impl.client.HttpClients
   
   fun main() {
       val IP="110.128.1.133"
       val Port="12345"
       val apiBody="/dolphinscheduler/projects/CWJS/executors/start-process-instance"
       val urlBuilder = URIBuilder("http://${IP}:${Port}/${apiBody}")
       urlBuilder.addParameter("failureStrategy","CONTINUE")
       urlBuilder.addParameter("processDefinitionId","3")
       urlBuilder.addParameter("processInstancePriority","MEDIUM")
       urlBuilder.addParameter("projectName","CWJS")
       urlBuilder.addParameter("scheduleTime","2021-08-01 00:00:00,2021-08-31 00:00:00")
       urlBuilder.addParameter("warningGroupId","1")
       urlBuilder.addParameter("warningType","NONE")
       val post = HttpPost(urlBuilder.build())
       post.addHeader("token","c05003d12097700fa4dd0302164da8bb")
       val httpClient = HttpClients.createDefault()
       val response = httpClient.execute(post)
       val returnCode = response.statusLine.statusCode
       println(response.entity.content.bufferedReader().readText())
       println(returnCode)
       response.close()
       httpClient.close()
   }
   ```
   i want to complement data from 20210801 to 20210831,but when i run my code,i just start up one process,and the run type is 'Start Process',not 'complement data'
   do i call the wrong api or something wrong with my parameters?thanks a lot
   您好,我已经升级了1.3.8,但是我还是不能通过调用api的方式来补数。请见我的代码
   我想从20210801开始补数,到20210831结束,但是当我运行代码时,我还是只能调起一个作业,而且作业的运行类型是'启动工作流',而不是'补数',请问是否是我调用了错误的API,或者是我的参数有问题吗?请指点,非常感谢


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [dolphinscheduler] praynise commented on issue #6070: can i complement data by calling api?

Posted by GitBox <gi...@apache.org>.
praynise commented on issue #6070:
URL: https://github.com/apache/dolphinscheduler/issues/6070#issuecomment-908992572


   @Squidyu serial,i must run my job day by day.and before next day,and i use system.biz.date as my batch date
   我一般使用串行补数,并使用system.biz.date作为我的跑批输入参数


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #6070: can i complement data by calling api?

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #6070:
URL: https://github.com/apache/dolphinscheduler/issues/6070#issuecomment-908951817


   can i complement data by calling api?i found start-process-instance api but i can not complement data with this api,i set parameter scheduleTime with 2021-08-01 00:00:00,2021-08-31 00:00 :00, but still the job just run once.
   Can I use the API to track the number by calling http request? I tried to use start-process-instance to chase the number, and set the scheduleTime parameter to 2021-08-01 00:00:00, 2021-08-31 00:00:00, but only the latest day was adjusted. , Please guide, thank you very much~
   **Which version of DolphinScheduler:**
    -[1.3.6]


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [dolphinscheduler] Squidyu commented on issue #6070: can i complement data by calling api?

Posted by GitBox <gi...@apache.org>.
Squidyu commented on issue #6070:
URL: https://github.com/apache/dolphinscheduler/issues/6070#issuecomment-908973617






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org