RE: How do I disable a particular job present in the jobflow using dicmd/curl commands

I have jobflow which has many jobs included in it. I have requirement to disable a job present in it. How Can I do it from CLI or REST commands

TommyM Beginner Asked on October 1, 2020 in Diyotta Scheduler.
Add Comment
1 Answers

Diyotta has included a new dicmd command which would disable one particular job present in the job flows

DICMD:

Syntax: dicmd changejobmode [-u userName -w userPassword] -m disable|enable -p ProjectName -l LayerName -s JobFlowName -j jobName

 

Example: dicmd changejobmode -u avinash -w P2wd_1234 -m disable -p TESTPROJECT -l Layer_1 -s j_FILE_to_HIVE -j TASK_NAME_2

CURL command:

Example : curl -X POST “http://172.40.9.130:9600/diyotta-rest/changejobmode?project=3121_bug_fixes&layer=layer_1&flow=j_dds_8600&jobname=task_name_2&mode=disable” -H “Authorization:BQxKxU8XzYLKOLNKM67/eBIkHCq7EAQU/7X3ct+dIGA=”

Expert Answered on October 5, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.