Hi,
Ok, thanks for your time on this.
The problem is not with running scripts per se but when importing a module manifest.
I have setup a dummy module manifest to help you replicate this issue.
Repro steps:
-
Unzip the attached file to the 2012 server (I used D:\DelayTest as the target)
-
Create a test project with 1 script step containing this single line of code: “D:\DelayTest\Test-ModuleStartTime.ps1”
-
Obviously, update the step details and the .ps1 script to match the new path if you’ve changed it
-
Jump on the server and run the script manually
-
Run a release from octopus
-
Check for differences J
Octopus raw logs also attached.
Btw, there is nothing at all out of the ordinary with this setup.
Everything is referenced via full paths, there is no reliance on the PSModulePath environment variable for example.
It could not be simpler, however I am again seeing a very large difference in the time taken through the tentacle and when run manually.
In fact 2012 (manually) is marginally quicker than 2008 (manually).
I appreciate your help with this.
Thanks
Allan
FYI my test results are:
=== 2008 Manually ===
Importing Module
Days : 0
Hours : 0
Minutes : 0
Seconds : 3
Milliseconds : 859
Ticks : 38598510
TotalDays : 4.46742013888889E-05
TotalHours : 0.00107218083333333
TotalMinutes : 0.06433085
TotalSeconds : 3.859851
TotalMilliseconds : 3859.851
=== 2008 Tentacle ===
09:51:29 Info | Importing Module
09:51:40 Info | Days : 0
09:51:40 Info | Hours : 0
09:51:40 Info | Minutes : 0
09:51:40 Info | Seconds : 10
09:51:40 Info | Milliseconds : 738
09:51:40 Info | Ticks : 107386048
09:51:40 Info | TotalDays : 0.000124289407407407
09:51:40 Info | TotalHours : 0.00298294577777778
09:51:40 Info | TotalMinutes : 0.178976746666667
09:51:40 Info | TotalSeconds : 10.7386048
09:51:40 Info | TotalMilliseconds : 10738.6048
=== 2012 manually ===
Importing Module
Days : 0
Hours : 0
Minutes : 0
Seconds : 3
Milliseconds : 146
Ticks : 31464204
TotalDays : 3.64169027777778E-05
TotalHours : 0.000874005666666667
TotalMinutes : 0.05244034
TotalSeconds : 3.1464204
TotalMilliseconds : 3146.4204
=== 2012 Tentacle ===
09:52:04 Info | Importing Module
09:53:07 Info | Days : 0
09:53:07 Info | Hours : 0
09:53:07 Info | Minutes : 1
09:53:07 Info | Seconds : 0
09:53:07 Info | Milliseconds : 888
09:53:07 Info | Ticks : 608882985
09:53:07 Info | TotalDays : 0.000704725677083333
09:53:07 Info | TotalHours : 0.01691341625
09:53:07 Info | TotalMinutes : 1.014804975
09:53:07 Info | TotalSeconds : 60.8882985
09:53:07 Info | TotalMilliseconds : 60888.2985
ServerTasks-1804-TestEnv2008.log (3 KB)
DelayTest.zip (122 KB)
ServerTasks-1805-LiveEnv2012.log (3 KB)