File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed
src/commands/project/retrieve Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 291
291
" metadata" ,
292
292
" output-dir" ,
293
293
" package-name" ,
294
+ " poll-interval" ,
294
295
" single-package" ,
295
296
" source-dir" ,
296
297
" target-metadata-dir" ,
Original file line number Diff line number Diff line change @@ -149,6 +149,10 @@ Extract all files from the retrieved zip file.
149
149
150
150
File name to use for the retrieved zip file.
151
151
152
+ # flags.poll-interval.summary
153
+
154
+ Number of seconds to wait between status checks.
155
+
152
156
# error.Conflicts
153
157
154
158
There are changes in your local files that conflict with the org changes you're trying to retrieve.
Original file line number Diff line number Diff line change @@ -152,6 +152,13 @@ export default class RetrieveMetadata extends SfCommand<RetrieveResultJson> {
152
152
exclusive : [ 'ignore-conflicts' ] ,
153
153
helpGroup : mdapiFlagGroup ,
154
154
} ) ,
155
+ 'poll-interval' : Flags . duration ( {
156
+ min : Duration . milliseconds ( 500 ) . seconds ,
157
+ required : false ,
158
+ helpValue : '<seconds>' ,
159
+ unit : 'seconds' ,
160
+ summary : messages . getMessage ( 'flags.poll-interval.summary' ) ,
161
+ } ) ,
155
162
} ;
156
163
157
164
public static configurationVariablesSection = toHelpSection (
@@ -266,7 +273,7 @@ export default class RetrieveMetadata extends SfCommand<RetrieveResultJson> {
266
273
throw error ;
267
274
} ) ;
268
275
269
- this . retrieveResult = await retrieve . pollStatus ( 500 , flags . wait . seconds ) ;
276
+ this . retrieveResult = await retrieve . pollStatus ( flags [ 'poll-interval' ] ?. milliseconds ?? 500 , flags . wait . seconds ) ;
270
277
}
271
278
272
279
this . ms . stop ( ) ;
You can’t perform that action at this time.
0 commit comments