You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: "A script to run after the agent starts. The script should exit when it is done to signal that the agent is ready.",
124
+
Description: `A script to run after the agent starts. The script should exit when it is done to signal that the agent is ready. This option is an alias for defining a "coder_script" resource with "run_on_start" set to true.`,
Description: "A script to run before the agent is stopped. The script should exit when it is done to signal that the workspace can be stopped.",
141
+
Description: `A script to run before the agent is stopped. The script should exit when it is done to signal that the workspace can be stopped. This option is an alias for defining a "coder_script" resource with "run_on_stop" set to true.`,
Description: "This option sets the behavior of the `startup_script`. When set to \"blocking\", the startup_script must exit before the workspace is ready. When set to \"non-blocking\", the startup_script may run in the background and the workspace will be ready immediately. Default is \"non-blocking\", although \"blocking\" is recommended.",
200
+
Description: `This option sets the behavior of the "startup_script". When set to "blocking", the startup_script must exit before the workspace is ready. When set to "non-blocking", the startup_script may run in the background and the workspace will be ready immediately. Default is "non-blocking", although "blocking" is recommended. This option is an alias for defining a "coder_script" resource with "start_blocks_login" set to true (blocking).`,
Description: "This option defines whether or not the user can (by default) login to the workspace before this script completes running on start. When enabled, users may see an incomplete workspace when logging in.",
87
+
Description: "This option determines whether users can log in immediately or must wait for the workspace to finish running this script upon startup. If not enabled, users may encounter an incomplete workspace when logging in. This option only sets the default, the user can still manually override the behavior.",
88
88
},
89
89
"run_on_start": {
90
90
Type: schema.TypeBool,
91
91
Default: false,
92
92
ForceNew: true,
93
93
Optional: true,
94
-
Description: "This option defines whether or not the script should run when the agent starts.",
94
+
Description: "This option defines whether or not the script should run when the agent starts. The script should exit when it is done to signal that the agent is ready.",
95
95
},
96
96
"run_on_stop": {
97
97
Type: schema.TypeBool,
98
98
Default: false,
99
99
ForceNew: true,
100
100
Optional: true,
101
-
Description: "This option defines whether or not the script should run when the agent stops.",
101
+
Description: "This option defines whether or not the script should run when the agent stops. The script should exit when it is done to signal that the workspace can be stopped.",
102
102
},
103
103
"timeout": {
104
104
Type: schema.TypeInt,
105
105
Default: 0,
106
106
ForceNew: true,
107
107
Optional: true,
108
-
Description: "Time in seconds until the agent lifecycle status is marked as timed out, this happens when the script has not completed (exited) in the given time.",
108
+
Description: "Time in seconds that the script is allowed to run. If the script does not complete within this time, the script is terminated and the agent lifecycle status is marked as timed out. A value of zero (default) means no timeout.",
0 commit comments