Page 1 of 1

Background jobs not processing

Posted: Wed May 09, 2018 6:27 am
by whiggs2
To help you better we need some information from you.

*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***

Product, version and build:
SAPIEN Powershell Studio 2018
Version 5.5.152
32 or 64 bit version of product:
64-bit
Operating system:
Microsoft Windows 10 Enterprise
10.0.16299 N/A Build 16299
32 or 64 bit OS: 64 bit

In order to create powershell GUI scripts which are responsive, I have been using the framework designated in the below link in order to run the processes associated with control events as background jobs:
https://www.sapien.com/blog/2012/05/16/ ... ive-forms/
I have used this in several projects successfully, however, in my most recent project, these background jobs will hang indefinitely and never process the contents of the "completescript" scriptblock. The contents of the "jobscript" script block will execute, but there appears to be an issue with the transition from the end of the "jobscript" scriptblock to the start of the "completeScript" block. Oddly, this issue started occurring around when the last powershell studio update was released. Any ideas?

DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM

Re: Background jobs not processing

Posted: Wed May 09, 2018 7:53 am
by mxtrinidad
If the issue is always happening. Can you provide an example? You could zip a solution and send it to us.
We would gladly take a look at it.

:)

Re: Background jobs not processing

Posted: Wed May 09, 2018 8:14 am
by davidc
I responded to your original post here:

viewtopic.php?f=12&t=12586

The topic was moved to the PowerShell GUIs forum.

Re: Background jobs not processing

Posted: Wed May 09, 2018 9:16 am
by whiggs2
This may be a stupid question, but should I remove the credential info? Also, can you provide me the link to upload files to sapien?

Re: Background jobs not processing

Posted: Wed May 09, 2018 9:55 am
by davidc
The link is in the other thread. I'm going to lock this post so we don't have duplicate threads.