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
Copy file name to clipboardExpand all lines: content/en/docs/refguide10/modeling/resources/scheduled-events.md
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ Scheduled events can be tested locally, but they will not be run if your app is
23
23
| Name | The name of the scheduled event. This name is recorded in the `System.ProcessedQueueTask` objects at runtime, so that you can identify when this scheduled event has been processed. See [Task Queues](/refguide10/task-queue/) for additional information about this object. ⚠ For compatibility with legacy scheduled events, it is also stored in the `ScheduledEventInformation` objects but this is deprecated and will be removed in Mendix 11. |
24
24
| Documentation | This field is for documentation purposes in the app model only. Its value is not visible to end-users and doesn't influence the behavior of your application. |
25
25
26
-
## Execution Properties
26
+
## Execution Properties{#execution-properties}
27
27
28
28
| Property | Description |
29
29
| --- | --- |
@@ -199,3 +199,18 @@ Every time a scheduled event is run it produces an entry in the `System.Processe
199
199
### One Session for All Scheduled Events
200
200
201
201
Each runtime node has one specific session in memory which is used for all scheduled events. Changes to this session are visible for all scheduled events on that node. Things like changing the time zone via a Java action in one scheduled event can lead to unexpected behavior in other scheduled events. You are therefore strongly discouraged from changing the session object for scheduled events.
202
+
203
+
### Renaming Scheduled Events and Deployment Behavior
204
+
205
+
When a scheduled event is deployed to an environment, its [enabled/disabled state](#execution-properties) is tracked by using the name of the scheduled event, not by a unique identifier.
206
+
207
+
This means that if you rename a scheduled event in your model (for example, from `SE_Current` to `SE_Old`) and then create a new scheduled event with the original name (`SE_Current`), the deployment platform will treat the new scheduled event as if it is the old one because the name matches.
208
+
209
+
This means that:
210
+
211
+
* The new scheduled event (`SE_Current`) will inherit the enabled state of the previously deployed scheduled event that carried the same name.
212
+
* The renamed scheduled event (`SE_Old`) will be treated as a new, previously unseen, event and will default to disabled.
213
+
214
+
{{% alert color="info" %}}
215
+
Be mindful of this behavior when renaming scheduled events and reusing names within the same application. If you rename a scheduled event and introduce a new one with the original name, verify the enabled/disabled states of all affected scheduled events after deployment to ensure they match your intentions.
Copy file name to clipboardExpand all lines: content/en/docs/refguide9/modeling/resources/scheduled-events/scheduled-events-task-queue.md
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ Scheduled events can be tested locally, but they will not be run if your app is
23
23
| Name | The name of the scheduled event. This name is recorded in the `System.ProcessedQueueTask` objects at runtime, so that you can identify when this scheduled event has been processed. For compatibility with legacy scheduled events, it is also stored in the `ScheduledEventInformation` objects but this is deprecated and will be removed in Mendix 11. |
24
24
| Documentation | This field is for documentation purposes in the app model only. Its value is not visible to end-users and doesn't influence the behavior of your application. |
25
25
26
-
## Execution Properties
26
+
## Execution Properties{#execution-properties}
27
27
28
28
| Property | Description |
29
29
| --- | --- |
@@ -180,3 +180,18 @@ Hour- and minute-based intervals can only be integer divisors of 24 or 60, respe
180
180
### One Session for All Scheduled Events
181
181
182
182
Each runtime node has one specific session in memory which is used for all scheduled events. Changes to this session are visible for all scheduled events on that node. Things like changing the time zone via a Java action in one scheduled event can lead to unexpected behavior in other scheduled events. You are therefore strongly discouraged from changing the session object for scheduled events.
183
+
184
+
### Renaming Scheduled Events and Deployment Behavior
185
+
186
+
When a scheduled event is deployed to an environment, its [enabled/disabled state](#execution-properties) is tracked by using the name of the scheduled event, not by a unique identifier.
187
+
188
+
This means that if you rename a scheduled event in your model (for example, from `SE_Current` to `SE_Old`) and then create a new scheduled event with the original name (`SE_Current`), the deployment platform will treat the new scheduled event as if it is the old one because the name matches.
189
+
190
+
This means that:
191
+
192
+
* The new scheduled event (`SE_Current`) will inherit the enabled state of the previously deployed scheduled event that carried the same name.
193
+
* The renamed scheduled event (`SE_Old`) will be treated as a new, previously unseen, event and will default to disabled.
194
+
195
+
{{% alert color="info" %}}
196
+
Be mindful of this behavior when renaming scheduled events and reusing names within the same application. If you rename a scheduled event and introduce a new one with the original name, verify the enabled/disabled states of all affected scheduled events after deployment to ensure they match your intentions.
0 commit comments