Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to determine if there is a task that is running...

Former Member
0 Kudos

Hi, I use a call function starting new task taskname. I need to do a second program that check if there is a task with 'taskname' that is running up.

There is a way?

Thanks in advance

Emmanuele Prudenzano

2 REPLIES 2

Former Member
0 Kudos

See if this is useful for you:

<b>BP_FIND_JOBS_WITH_PROGRAM</b>

<b>BP_JOB_CHECKSTATE</b>

<b>SHOW_JOBSTATE</b>

<b>BP_JOB_STATUS_GET</b>

0 Kudos

Hi Sam,

Unfortunatly call function starting new task does not submit a job, so

BP_FIND_JOBS_WITH_PROGRAM

BP_JOB_CHECKSTATE

SHOW_JOBSTATE

BP_JOB_STATUS_GET

cannot be use to check if background task is running.

Thanks anyway.

Emmanuele Prudenzano