@alicloud/schedulerx320240624 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/client.ts CHANGED
@@ -388,6 +388,11 @@ export class CreateJobRequest extends $tea.Model {
388
388
  * test
389
389
  */
390
390
  description?: string;
391
+ /**
392
+ * @example
393
+ * 1
394
+ */
395
+ executorBlockStrategy?: number;
391
396
  /**
392
397
  * @remarks
393
398
  * This parameter is required.
@@ -474,6 +479,7 @@ export class CreateJobRequest extends $tea.Model {
474
479
  calendar: 'Calendar',
475
480
  clusterId: 'ClusterId',
476
481
  description: 'Description',
482
+ executorBlockStrategy: 'ExecutorBlockStrategy',
477
483
  jobHandler: 'JobHandler',
478
484
  jobType: 'JobType',
479
485
  maxAttempt: 'MaxAttempt',
@@ -499,6 +505,7 @@ export class CreateJobRequest extends $tea.Model {
499
505
  calendar: 'string',
500
506
  clusterId: 'string',
501
507
  description: 'string',
508
+ executorBlockStrategy: 'number',
502
509
  jobHandler: 'string',
503
510
  jobType: 'string',
504
511
  maxAttempt: 'number',
@@ -554,6 +561,11 @@ export class CreateJobShrinkRequest extends $tea.Model {
554
561
  * test
555
562
  */
556
563
  description?: string;
564
+ /**
565
+ * @example
566
+ * 1
567
+ */
568
+ executorBlockStrategy?: number;
557
569
  /**
558
570
  * @remarks
559
571
  * This parameter is required.
@@ -640,6 +652,7 @@ export class CreateJobShrinkRequest extends $tea.Model {
640
652
  calendar: 'Calendar',
641
653
  clusterId: 'ClusterId',
642
654
  description: 'Description',
655
+ executorBlockStrategy: 'ExecutorBlockStrategy',
643
656
  jobHandler: 'JobHandler',
644
657
  jobType: 'JobType',
645
658
  maxAttempt: 'MaxAttempt',
@@ -665,6 +678,7 @@ export class CreateJobShrinkRequest extends $tea.Model {
665
678
  calendar: 'string',
666
679
  clusterId: 'string',
667
680
  description: 'string',
681
+ executorBlockStrategy: 'number',
668
682
  jobHandler: 'string',
669
683
  jobType: 'string',
670
684
  maxAttempt: 'number',
@@ -3072,20 +3086,32 @@ export class ListJobsRequest extends $tea.Model {
3072
3086
  }
3073
3087
 
3074
3088
  export class ListJobsResponseBody extends $tea.Model {
3089
+ code?: number;
3075
3090
  /**
3076
3091
  * @remarks
3077
3092
  * -
3078
3093
  */
3079
3094
  data?: ListJobsResponseBodyData;
3095
+ message?: string;
3096
+ requestId?: string;
3097
+ success?: boolean;
3080
3098
  static names(): { [key: string]: string } {
3081
3099
  return {
3100
+ code: 'Code',
3082
3101
  data: 'Data',
3102
+ message: 'Message',
3103
+ requestId: 'RequestId',
3104
+ success: 'Success',
3083
3105
  };
3084
3106
  }
3085
3107
 
3086
3108
  static types(): { [key: string]: any } {
3087
3109
  return {
3110
+ code: 'number',
3088
3111
  data: ListJobsResponseBodyData,
3112
+ message: 'string',
3113
+ requestId: 'string',
3114
+ success: 'boolean',
3089
3115
  };
3090
3116
  }
3091
3117
 
@@ -4536,21 +4562,69 @@ export class OperateRetryJobExecutionRequest extends $tea.Model {
4536
4562
  */
4537
4563
  clusterId?: string;
4538
4564
  /**
4565
+ * @remarks
4566
+ * This parameter is required.
4567
+ *
4539
4568
  * @example
4540
4569
  * 1310630367761285120
4541
4570
  */
4542
4571
  jobExecutionId?: string;
4572
+ taskList?: string[];
4573
+ static names(): { [key: string]: string } {
4574
+ return {
4575
+ appName: 'AppName',
4576
+ clusterId: 'ClusterId',
4577
+ jobExecutionId: 'JobExecutionId',
4578
+ taskList: 'TaskList',
4579
+ };
4580
+ }
4581
+
4582
+ static types(): { [key: string]: any } {
4583
+ return {
4584
+ appName: 'string',
4585
+ clusterId: 'string',
4586
+ jobExecutionId: 'string',
4587
+ taskList: { 'type': 'array', 'itemType': 'string' },
4588
+ };
4589
+ }
4590
+
4591
+ constructor(map?: { [key: string]: any }) {
4592
+ super(map);
4593
+ }
4594
+ }
4595
+
4596
+ export class OperateRetryJobExecutionShrinkRequest extends $tea.Model {
4543
4597
  /**
4598
+ * @remarks
4599
+ * This parameter is required.
4600
+ *
4544
4601
  * @example
4545
- * 74
4602
+ * test-app
4546
4603
  */
4547
- jobId?: number;
4604
+ appName?: string;
4605
+ /**
4606
+ * @remarks
4607
+ * This parameter is required.
4608
+ *
4609
+ * @example
4610
+ * xxljob-b6ec1xxxx
4611
+ */
4612
+ clusterId?: string;
4613
+ /**
4614
+ * @remarks
4615
+ * This parameter is required.
4616
+ *
4617
+ * @example
4618
+ * 1310630367761285120
4619
+ */
4620
+ jobExecutionId?: string;
4621
+ taskListShrink?: string;
4548
4622
  static names(): { [key: string]: string } {
4549
4623
  return {
4550
4624
  appName: 'AppName',
4551
4625
  clusterId: 'ClusterId',
4552
4626
  jobExecutionId: 'JobExecutionId',
4553
- jobId: 'JobId',
4627
+ taskListShrink: 'TaskList',
4554
4628
  };
4555
4629
  }
4556
4630
 
@@ -4559,7 +4633,7 @@ export class OperateRetryJobExecutionRequest extends $tea.Model {
4559
4633
  appName: 'string',
4560
4634
  clusterId: 'string',
4561
4635
  jobExecutionId: 'string',
4562
- jobId: 'number',
4636
+ taskListShrink: 'string',
4563
4637
  };
4564
4638
  }
4565
4639
 
@@ -4655,21 +4729,69 @@ export class OperateStopJobExecutionRequest extends $tea.Model {
4655
4729
  */
4656
4730
  clusterId?: string;
4657
4731
  /**
4732
+ * @remarks
4733
+ * This parameter is required.
4734
+ *
4658
4735
  * @example
4659
4736
  * 1310630367761285120
4660
4737
  */
4661
4738
  jobExecutionId?: string;
4739
+ taskList?: string[];
4740
+ static names(): { [key: string]: string } {
4741
+ return {
4742
+ appName: 'AppName',
4743
+ clusterId: 'ClusterId',
4744
+ jobExecutionId: 'JobExecutionId',
4745
+ taskList: 'TaskList',
4746
+ };
4747
+ }
4748
+
4749
+ static types(): { [key: string]: any } {
4750
+ return {
4751
+ appName: 'string',
4752
+ clusterId: 'string',
4753
+ jobExecutionId: 'string',
4754
+ taskList: { 'type': 'array', 'itemType': 'string' },
4755
+ };
4756
+ }
4757
+
4758
+ constructor(map?: { [key: string]: any }) {
4759
+ super(map);
4760
+ }
4761
+ }
4762
+
4763
+ export class OperateStopJobExecutionShrinkRequest extends $tea.Model {
4764
+ /**
4765
+ * @remarks
4766
+ * This parameter is required.
4767
+ *
4768
+ * @example
4769
+ * test-app
4770
+ */
4771
+ appName?: string;
4662
4772
  /**
4773
+ * @remarks
4774
+ * This parameter is required.
4775
+ *
4663
4776
  * @example
4664
- * 74
4777
+ * xxljob-b6ec1xxxx
4665
4778
  */
4666
- jobId?: number;
4779
+ clusterId?: string;
4780
+ /**
4781
+ * @remarks
4782
+ * This parameter is required.
4783
+ *
4784
+ * @example
4785
+ * 1310630367761285120
4786
+ */
4787
+ jobExecutionId?: string;
4788
+ taskListShrink?: string;
4667
4789
  static names(): { [key: string]: string } {
4668
4790
  return {
4669
4791
  appName: 'AppName',
4670
4792
  clusterId: 'ClusterId',
4671
4793
  jobExecutionId: 'JobExecutionId',
4672
- jobId: 'JobId',
4794
+ taskListShrink: 'TaskList',
4673
4795
  };
4674
4796
  }
4675
4797
 
@@ -4678,7 +4800,7 @@ export class OperateStopJobExecutionRequest extends $tea.Model {
4678
4800
  appName: 'string',
4679
4801
  clusterId: 'string',
4680
4802
  jobExecutionId: 'string',
4681
- jobId: 'number',
4803
+ taskListShrink: 'string',
4682
4804
  };
4683
4805
  }
4684
4806
 
@@ -5026,6 +5148,11 @@ export class UpdateJobRequest extends $tea.Model {
5026
5148
  * test
5027
5149
  */
5028
5150
  description?: string;
5151
+ /**
5152
+ * @example
5153
+ * 1
5154
+ */
5155
+ executorBlockStrategy?: number;
5029
5156
  /**
5030
5157
  * @example
5031
5158
  * testJobVoidHandler
@@ -5098,6 +5225,7 @@ export class UpdateJobRequest extends $tea.Model {
5098
5225
  calendar: 'Calendar',
5099
5226
  clusterId: 'ClusterId',
5100
5227
  description: 'Description',
5228
+ executorBlockStrategy: 'ExecutorBlockStrategy',
5101
5229
  jobHandler: 'JobHandler',
5102
5230
  jobId: 'JobId',
5103
5231
  maxAttempt: 'MaxAttempt',
@@ -5122,6 +5250,7 @@ export class UpdateJobRequest extends $tea.Model {
5122
5250
  calendar: 'string',
5123
5251
  clusterId: 'string',
5124
5252
  description: 'string',
5253
+ executorBlockStrategy: 'number',
5125
5254
  jobHandler: 'string',
5126
5255
  jobId: 'number',
5127
5256
  maxAttempt: 'number',
@@ -5176,6 +5305,11 @@ export class UpdateJobShrinkRequest extends $tea.Model {
5176
5305
  * test
5177
5306
  */
5178
5307
  description?: string;
5308
+ /**
5309
+ * @example
5310
+ * 1
5311
+ */
5312
+ executorBlockStrategy?: number;
5179
5313
  /**
5180
5314
  * @example
5181
5315
  * testJobVoidHandler
@@ -5248,6 +5382,7 @@ export class UpdateJobShrinkRequest extends $tea.Model {
5248
5382
  calendar: 'Calendar',
5249
5383
  clusterId: 'ClusterId',
5250
5384
  description: 'Description',
5385
+ executorBlockStrategy: 'ExecutorBlockStrategy',
5251
5386
  jobHandler: 'JobHandler',
5252
5387
  jobId: 'JobId',
5253
5388
  maxAttempt: 'MaxAttempt',
@@ -5272,6 +5407,7 @@ export class UpdateJobShrinkRequest extends $tea.Model {
5272
5407
  calendar: 'string',
5273
5408
  clusterId: 'string',
5274
5409
  description: 'string',
5410
+ executorBlockStrategy: 'number',
5275
5411
  jobHandler: 'string',
5276
5412
  jobId: 'number',
5277
5413
  maxAttempt: 'number',
@@ -6900,12 +7036,18 @@ export class ListJobsResponseBodyDataRecords extends $tea.Model {
6900
7036
  * 1963096506470832
6901
7037
  */
6902
7038
  creator?: string;
7039
+ /**
7040
+ * @example
7041
+ * 3
7042
+ */
7043
+ currentExecuteStatus?: number;
6903
7044
  /**
6904
7045
  * @example
6905
7046
  * 3
6906
7047
  */
6907
7048
  dataOffset?: number;
6908
7049
  description?: string;
7050
+ executorBlockStrategy?: string;
6909
7051
  /**
6910
7052
  * @example
6911
7053
  * jobDemoHandler
@@ -6921,6 +7063,8 @@ export class ListJobsResponseBodyDataRecords extends $tea.Model {
6921
7063
  * xxljob
6922
7064
  */
6923
7065
  jobType?: string;
7066
+ lastExecuteEndTime?: string;
7067
+ lastExecuteStatus?: number;
6924
7068
  /**
6925
7069
  * @example
6926
7070
  * 5
@@ -6995,11 +7139,15 @@ export class ListJobsResponseBodyDataRecords extends $tea.Model {
6995
7139
  calendar: 'Calendar',
6996
7140
  cleanMode: 'CleanMode',
6997
7141
  creator: 'Creator',
7142
+ currentExecuteStatus: 'CurrentExecuteStatus',
6998
7143
  dataOffset: 'DataOffset',
6999
7144
  description: 'Description',
7145
+ executorBlockStrategy: 'ExecutorBlockStrategy',
7000
7146
  jobHandler: 'JobHandler',
7001
7147
  jobId: 'JobId',
7002
7148
  jobType: 'JobType',
7149
+ lastExecuteEndTime: 'LastExecuteEndTime',
7150
+ lastExecuteStatus: 'LastExecuteStatus',
7003
7151
  maxAttempt: 'MaxAttempt',
7004
7152
  maxConcurrency: 'MaxConcurrency',
7005
7153
  name: 'Name',
@@ -7025,11 +7173,15 @@ export class ListJobsResponseBodyDataRecords extends $tea.Model {
7025
7173
  calendar: 'string',
7026
7174
  cleanMode: 'string',
7027
7175
  creator: 'string',
7176
+ currentExecuteStatus: 'number',
7028
7177
  dataOffset: 'number',
7029
7178
  description: 'string',
7179
+ executorBlockStrategy: 'string',
7030
7180
  jobHandler: 'string',
7031
7181
  jobId: 'number',
7032
7182
  jobType: 'string',
7183
+ lastExecuteEndTime: 'string',
7184
+ lastExecuteStatus: 'number',
7033
7185
  maxAttempt: 'number',
7034
7186
  maxConcurrency: 'number',
7035
7187
  name: 'string',
@@ -7636,6 +7788,10 @@ export default class Client extends OpenApi {
7636
7788
  body["Description"] = request.description;
7637
7789
  }
7638
7790
 
7791
+ if (!Util.isUnset(request.executorBlockStrategy)) {
7792
+ body["ExecutorBlockStrategy"] = request.executorBlockStrategy;
7793
+ }
7794
+
7639
7795
  if (!Util.isUnset(request.jobHandler)) {
7640
7796
  body["JobHandler"] = request.jobHandler;
7641
7797
  }
@@ -8969,12 +9125,18 @@ export default class Client extends OpenApi {
8969
9125
  /**
8970
9126
  * 重跑失败的任务实例
8971
9127
  *
8972
- * @param request - OperateRetryJobExecutionRequest
9128
+ * @param tmpReq - OperateRetryJobExecutionRequest
8973
9129
  * @param runtime - runtime options for this request RuntimeOptions
8974
9130
  * @returns OperateRetryJobExecutionResponse
8975
9131
  */
8976
- async operateRetryJobExecutionWithOptions(request: OperateRetryJobExecutionRequest, runtime: $Util.RuntimeOptions): Promise<OperateRetryJobExecutionResponse> {
8977
- Util.validateModel(request);
9132
+ async operateRetryJobExecutionWithOptions(tmpReq: OperateRetryJobExecutionRequest, runtime: $Util.RuntimeOptions): Promise<OperateRetryJobExecutionResponse> {
9133
+ Util.validateModel(tmpReq);
9134
+ let request = new OperateRetryJobExecutionShrinkRequest({ });
9135
+ OpenApiUtil.convert(tmpReq, request);
9136
+ if (!Util.isUnset(tmpReq.taskList)) {
9137
+ request.taskListShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.taskList, "TaskList", "json");
9138
+ }
9139
+
8978
9140
  let query = { };
8979
9141
  if (!Util.isUnset(request.appName)) {
8980
9142
  query["AppName"] = request.appName;
@@ -8988,8 +9150,8 @@ export default class Client extends OpenApi {
8988
9150
  query["JobExecutionId"] = request.jobExecutionId;
8989
9151
  }
8990
9152
 
8991
- if (!Util.isUnset(request.jobId)) {
8992
- query["JobId"] = request.jobId;
9153
+ if (!Util.isUnset(request.taskListShrink)) {
9154
+ query["TaskList"] = request.taskListShrink;
8993
9155
  }
8994
9156
 
8995
9157
  let req = new $OpenApi.OpenApiRequest({
@@ -9023,12 +9185,18 @@ export default class Client extends OpenApi {
9023
9185
  /**
9024
9186
  * 停止正在运行的任务实例
9025
9187
  *
9026
- * @param request - OperateStopJobExecutionRequest
9188
+ * @param tmpReq - OperateStopJobExecutionRequest
9027
9189
  * @param runtime - runtime options for this request RuntimeOptions
9028
9190
  * @returns OperateStopJobExecutionResponse
9029
9191
  */
9030
- async operateStopJobExecutionWithOptions(request: OperateStopJobExecutionRequest, runtime: $Util.RuntimeOptions): Promise<OperateStopJobExecutionResponse> {
9031
- Util.validateModel(request);
9192
+ async operateStopJobExecutionWithOptions(tmpReq: OperateStopJobExecutionRequest, runtime: $Util.RuntimeOptions): Promise<OperateStopJobExecutionResponse> {
9193
+ Util.validateModel(tmpReq);
9194
+ let request = new OperateStopJobExecutionShrinkRequest({ });
9195
+ OpenApiUtil.convert(tmpReq, request);
9196
+ if (!Util.isUnset(tmpReq.taskList)) {
9197
+ request.taskListShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.taskList, "TaskList", "json");
9198
+ }
9199
+
9032
9200
  let query = { };
9033
9201
  if (!Util.isUnset(request.appName)) {
9034
9202
  query["AppName"] = request.appName;
@@ -9042,8 +9210,8 @@ export default class Client extends OpenApi {
9042
9210
  query["JobExecutionId"] = request.jobExecutionId;
9043
9211
  }
9044
9212
 
9045
- if (!Util.isUnset(request.jobId)) {
9046
- query["JobId"] = request.jobId;
9213
+ if (!Util.isUnset(request.taskListShrink)) {
9214
+ query["TaskList"] = request.taskListShrink;
9047
9215
  }
9048
9216
 
9049
9217
  let req = new $OpenApi.OpenApiRequest({
@@ -9222,6 +9390,10 @@ export default class Client extends OpenApi {
9222
9390
  body["Description"] = request.description;
9223
9391
  }
9224
9392
 
9393
+ if (!Util.isUnset(request.executorBlockStrategy)) {
9394
+ body["ExecutorBlockStrategy"] = request.executorBlockStrategy;
9395
+ }
9396
+
9225
9397
  if (!Util.isUnset(request.jobHandler)) {
9226
9398
  body["JobHandler"] = request.jobHandler;
9227
9399
  }