Skip to main content
August 13, 2024
Question

Process model (scheduler) runs automatically after a deployment on other environment

  • August 13, 2024
  • 7 replies
  • 0 views

I am working on a scheduler which will run at4:00 AM daily.

but when i deploy the process model object to test enviroment it ran automatically first and later on schduled time.

So how can we manage this scenario so that the scheduler will run only at the scheduled time.

Many thanks in advance.

7 replies

sarathkumr268295
August 13, 2024

Every time a scheduled process model is published, it will run. In your case, you are deploying to another environment where it gets published. Thats why it runs at that time and again at the scheduled time. If you dont want this behaviour to happen, you can have an environmental constant and configure it to false while deploying the application. After deploying the changes, you can update the constant value to true and it will run only in that particular time.

August 13, 2024

[mention:b08a9915dde2428e9c6dfef8cba0cdd6:e9ed411860ed4f2ba0265705b8793d05]  Thank you!!

stefanhelzle0001
Brainy
August 13, 2024

A scheduled start node has two time settings. The initial delay, and the optional recurring timer. After deployment, the process will initiate as defined in the initial delay.

August 13, 2024

Thank you [mention:a11f77a729fb4db2af76b09948583328:e9ed411860ed4f2ba0265705b8793d05] . I have one more question about this:

Scheduled Delay: Delay for 15 Mins

Time Recurrence:

Daily: Every 1 day

at: 1:30 AM

If we have the above configuration for the Time event, the process will execute at 1:30 AM or 1:45 AM every day?

As per my understanding, it will be executed at 1:45 AM every day.

stefanhelzle0001
Brainy
August 13, 2024

The initial delay is applied only once and has no impact on the recurring timer settings.

gayathris111098
August 13, 2024

When deploying a scheduled process to another environment, we ensure that the constant, which has unique values for each environment  is deployed alongside it. We set the constant to false in the Customization File and then manually switch it back to true on the destination server after import. Alternatively, we can redeploy the constant set to true if needed.

Additionally, we can also develop an "Admin Page" for easy management of constant values. Most of start condition constants are included here, enabling to toggle them on and off through a user-friendly GUI, ensuring the processes behave as expected.