Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

javascript file updates are not applied

dmitry_sv
Level 1
Level 1

An External Account from a package I am working with has "Call JavaScript" set as its activation mode in its execution parameters. When I update the javascript file in question, then re-execute the workflow that uses that external package, only the old code appears to be used. How can I make sure any changes I make to a javascript file are applied?

1 Accepted Solution
craigthonis
Correct answer by
Employee
Employee

Hi Dmitry,

 

With the workflow that you re-executed, did you perform a stop and start of the workflow or did you pause the workflow and then resume it?

 

It's important to note that if you didn't perform a stop/start or restart of the workflow and only resumed a paused workflow that it will pick up from where it left off and resume the underlying workflow job which goes unchanged by any updates that you made while the workflow was paused.

 

Regards,

Craig

View solution in original post

2 Replies
craigthonis
Correct answer by
Employee
Employee

Hi Dmitry,

 

With the workflow that you re-executed, did you perform a stop and start of the workflow or did you pause the workflow and then resume it?

 

It's important to note that if you didn't perform a stop/start or restart of the workflow and only resumed a paused workflow that it will pick up from where it left off and resume the underlying workflow job which goes unchanged by any updates that you made while the workflow was paused.

 

Regards,

Craig

View solution in original post

Milan_Vucetic
Community Advisor
Community Advisor

Hi @dmitry_sv,

 

you have to restart MTA server after changes on javascript in order to be applied.

 

Regards,

Milan