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: 

Scheduling background job in Queue

prabhu_s2
Active Contributor
0 Kudos

Hello!

wondering if there is a way to schedule the background jobs in a Queue. I have a process which creates number of background jobs and wish to have a it scheduled it in a Queue. is that possible and would it make sense?

6 REPLIES 6

Former Member
0 Kudos

There is a concept of running jobs in the steps where if you maintain 2 jobs in then only after 1st job finish, 2nd job will run.

I am not sure if you are trying to do the same thing.

0 Kudos

RSBTONEJOB & RSBTONEJOB2

but you have to create a variant with the name of the job.

that will ensure that only one job with the same name runs at a time, not the job run in the good order

fred

0 Kudos

The issue with the current custom process , two jobs are created for two different files where an agreement number is duplicated. so job 1 locks the agreement and while job 2 runs it fails as the agreement is locked. I was thinking abt a solution where to force the system to run the jobs in a queue so that the locking can be avoided. I don't want to go with running jobs in steps as this will be messy considering the kind of application I'm working on

0 Kudos

If you do not want to run the jobs in steps then schedule the second job after certain time(after 1st job) and put a check in the second process to check the lock and if lock is present then wait for sometime.

Former Member
0 Kudos

You can also schedule a job start condition to start at a specific time or "after event"

You could create events after each job and schedule it that way.

prabhu_s2
Active Contributor
0 Kudos

sorry keith. That wont work for me considering my requirement where I need to run the list of created files in a queue. The files are processed via a submit job and hence job steps wont work good for my scenario