这是indexloc提供的服务,不要输入任何密码
Skip to content

chore(@turbo/types): add interruptible to schema #9706

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/turbo-types/schemas/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@
"type": "boolean",
"description": "Mark a task as interactive allowing it to receive input from stdin. Interactive tasks must be marked with \"cache\": false as the input they receive from stdin can change the outcome of the task.\n\nDocumentation: https://turbo.build/repo/docs/reference/configuration#interactive",
"default": false
},
"interruptible": {
"type": "boolean",
"description": "Label a persistent task as interruptible to allow it to be restarted by `turbo watch`. `turbo watch` watches for changes to your packages and automatically restarts tasks that are affected. However, if a task is persistent, it will not be restarted by default. To enable restarting persistent tasks, set `interruptible` to true.\n\nDocumentation: https://turbo.build/repo/docs/reference/configuration#interruptible",
"default": false
}
},
"additionalProperties": false
Expand Down
5 changes: 5 additions & 0 deletions packages/turbo-types/schemas/schema.v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@
"type": "boolean",
"description": "Mark a task as interactive allowing it to receive input from stdin. Interactive tasks must be marked with \"cache\": false as the input they receive from stdin can change the outcome of the task.\n\nDocumentation: https://turbo.build/repo/docs/reference/configuration#interactive",
"default": false
},
"interruptible": {
"type": "boolean",
"description": "Label a persistent task as interruptible to allow it to be restarted by `turbo watch`. `turbo watch` watches for changes to your packages and automatically restarts tasks that are affected. However, if a task is persistent, it will not be restarted by default. To enable restarting persistent tasks, set `interruptible` to true.\n\nDocumentation: https://turbo.build/repo/docs/reference/configuration#interruptible",
"default": false
}
},
"additionalProperties": false
Expand Down
13 changes: 13 additions & 0 deletions packages/turbo-types/src/types/config-v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,19 @@ export interface Pipeline {
* @defaultValue `false`
*/
interactive?: boolean;

/**
* Label a persistent task as interruptible to allow it to be restarted by `turbo watch`.
* `turbo watch` watches for changes to your packages and automatically
* restarts tasks that are affected. However, if a task is persistent, it will
* not be restarted by default. To enable restarting persistent tasks, set
* `interruptible` to true.
*
* Documentation: https://turbo.build/repo/docs/reference/configuration#interruptible
*
* @defaultValue `false`
*/
interruptible?: boolean;
}

export interface RemoteCache {
Expand Down
Loading