Skip to content

Commit 77c149c

Browse files
authored
Proofread
Clarified the tracking of enabled/disabled state for scheduled events by name and updated related recommendations.
1 parent 614c786 commit 77c149c

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

content/en/docs/refguide/modeling/resources/scheduled-events.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Scheduled events can be tested locally, but they will not be run if your app is
2323
| Name | The name of the scheduled event. This name is recorded in the `System.ProcessedQueueTask` objects at runtime so you can identify when this scheduled event has been processed. See [Task Queues](/refguide/task-queue/) for additional information about this object.<br/>⚠ 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. |
2424
| Documentation | This field is for documentation purposes in the app model only. Its value is not visible to end-users and does not influence the behavior of your application. |
2525

26-
## Execution Properties
26+
## Execution Properties{#execution-properties}
2727

2828
| Property | Description |
2929
| --- | --- |
@@ -209,14 +209,15 @@ This approach allows you to maintain flexibility in scheduling while keeping the
209209

210210
### Renaming Scheduled Events and Deployment Behavior
211211

212-
When a scheduled event is deployed to an environment, its enabled/disabled state is tracked by name, and not by a unique identifier. This applies to any deployment type.
212+
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.
213213

214-
**What this means in practice:**
215-
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 a continuation of the old one because the name matches.
214+
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.
215+
216+
This means that:
216217

217-
**As a result:**
218218
* The new scheduled event (`SE_Current`) will inherit the enabled state of the previously deployed scheduled event that carried the same name.
219-
* The renamed scheduled event (`SE_Old`) will be treated as a new, previously unseen event and will default to disabled.
219+
* The renamed scheduled event (`SE_Old`) will be treated as a new, previously unseen, event and will default to disabled.
220220

221-
**Recommendation**
221+
{{% alert color="info" %}}
222222
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.
223+
{{% /alert %}}

0 commit comments

Comments
 (0)