We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76bfc9c commit bf52fa3Copy full SHA for bf52fa3
src/cloud-functions.ts
@@ -486,5 +486,9 @@ export function optionsToTrigger(options: DeploymentOptions) {
486
if (options.schedule) {
487
trigger.schedule = options.schedule;
488
}
489
+
490
+ if (options.maxInstances) {
491
+ trigger.maxInstances = options.maxInstances;
492
+ }
493
return trigger;
494
src/function-configuration.ts
@@ -61,6 +61,11 @@ export interface RuntimeOptions {
61
* Timeout for the function in seconds, possible values are 0 to 540.
62
*/
63
timeoutSeconds?: number;
64
65
+ /**
66
+ * Max number of actual instances allowed to be running in parallel
67
+ */
68
+ maxInstances?: number;
69
70
71
export interface DeploymentOptions extends RuntimeOptions {
0 commit comments