How to run workflow on a particular application server ? | Community
Skip to main content
Level 2
October 9, 2023
Solved

How to run workflow on a particular application server ?

  • October 9, 2023
  • 1 reply
  • 997 views

I have created workflow in App 1, if i check in XML it shows hostname ="App1" and scheduled it daily to run.

 

however when i check the task details "machine where executed" is sometimes App1 and sometimes App2.

 

how can i change this to always execute on App1?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ParthaSarathy

Hi @ash20 ,

Go to workflow property > execution tab and select your workflow servers in 'Default affinity'.

If your installation includes several workflow servers, use this field to choose the machine which the workflow will be executed on. 

For more details, Refer here

1 reply

ParthaSarathy
Community Advisor
ParthaSarathyCommunity AdvisorAccepted solution
Community Advisor
October 9, 2023

Hi @ash20 ,

Go to workflow property > execution tab and select your workflow servers in 'Default affinity'.

If your installation includes several workflow servers, use this field to choose the machine which the workflow will be executed on. 

For more details, Refer here

~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups
ash20Author
Level 2
October 9, 2023

Dear @parthasarathy ,

 

I did not had any affinity so

 

1. I created App1 and App2 by entering in the 'Default affinity'.

 

2. I logged in both the app servers and added below in config-<instance>.xml file

     application server 1 - <wfserver autoStart="true" affinity="App1"/>

     application server 2 - <wfserver autoStart="true" affinity="App2"/>

 

3. nlserver config -reload 

 

but now if i run the workflow it is not starting (if i select affinity). 

October 9, 2023

@parthasarathy got it, there needs to be a comma in the end

 

     application server 1 - <wfserver autoStart="true" affinity="App1,"/>

     application server 2 - <wfserver autoStart="true" affinity="App2,"/>