Now, stop only means stop the job, function of resume job will be add later.




------------------ Original ------------------
From:&nbsp;"[email protected]"<[email protected]&gt;;
Date:&nbsp;Wed, Dec 4, 2019 05:01 PM
To:&nbsp;"dev"<[email protected]&gt;;

Subject:&nbsp;Re: [ShardingScaling][Discuss] Http request APIS about 
shardingscaling



Hi, Did the stop job mean we can resume the job, or just delete it forever?

------------------

Liang Zhang (John)
Apache ShardingSphere &amp; Dubbo


sushixiang <[email protected]&gt; ??2019??12??4?????? ????4:42??????

&gt; Hi, xia Yanick:
&gt;
&gt;
&gt; Stop api doesn't do a delete action, so we use [POST] and jobid will be
&gt; transferd as request body.
&gt; For others,Is it more readable to add such 'start', 'stop' or 'progress'?
&gt;
&gt;
&gt;
&gt;
&gt; ------------------&amp;nbsp;Original&amp;nbsp;------------------
&gt; From:&amp;nbsp;"xia Yanick"<[email protected]&amp;gt;;
&gt; Date:&amp;nbsp;Wed, Dec 4, 2019 04:31 PM
&gt; To:&amp;nbsp;"dev"<[email protected]&amp;gt;;
&gt;
&gt; Subject:&amp;nbsp;Re: [ShardingScaling][Discuss] Http request APIS about
&gt; shardingscaling
&gt;
&gt;
&gt;
&gt; Hi Xiang:
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; That's exactly what I 
needed,&amp;nbsp; otherwise, do you want like a
&gt; restful style?
&gt;
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; create a 
job:&amp;nbsp;&amp;nbsp;&amp;nbsp;
&gt;&nbsp; /shardingscaling/job/<job_id&amp;gt; [POST]
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; query a job 
status:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
/shardingscaling/job/<job_id&amp;gt;
&gt; [GET]
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stop a 
job&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 /shardingscaling/job/<job_id&amp;gt;
&gt; [DELETE]
&gt;
&gt;
&gt;
&gt;
&gt; &amp;gt; On Dec 4, 2019, at 16:18, sushixiang <[email protected]&amp;gt; 
wrote:
&gt; &amp;gt;
&gt; &amp;gt; Hi, everybody:
&gt; &amp;gt;
&gt; &amp;gt;
&gt; &amp;gt; Http request apis will be provided for shardingscaling to let 
people
&gt; easily manager the scaling job.
&gt; &amp;gt;
&gt; &amp;gt;
&gt; &amp;gt; Here are the definitions of such apis:
&gt; &amp;gt;
&gt; &amp;gt;
&gt; &amp;gt; /shardingscaling/job/start [POST]
&gt; &amp;gt; /shardingscaling/job/progress/${jobId} [GET]
&gt; &amp;gt; /shardingscaling/job/stop [POST]
&gt; &amp;gt;
&gt; &amp;gt;
&gt; &amp;gt;
&gt; &amp;gt; Above apis will be used for starting job, get job process and stop
&gt; job respectively.
&gt; &amp;gt;
&gt; &amp;gt;
&gt; &amp;gt; Here are the related issue and pr:
&gt; &amp;gt; [1] https://github.com/apache/incubator-shardingsphere/issues/3256
&gt; &amp;gt 
<https://github.com/apache/incubator-shardingsphere/issues/3256&amp;gt&gt;;
&gt; [2] https://github.com/apache/incubator-shardingsphere/pull/3656
&gt; &amp;gt 
<https://github.com/apache/incubator-shardingsphere/pull/3656&amp;gt&gt;;
&gt; &amp;gt;
&gt; &amp;gt; Comments or Suggestions on it are welcome!&amp;amp;nbsp;
&gt; &amp;gt;
&gt; &amp;gt;
&gt; &amp;gt;
&gt; &amp;gt; Thanks!

Reply via email to