Skip to Content
0

Scheduling background job in Queue

Nov 16, 2017 at 03:45 PM

77

avatar image

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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

avatar image
Former Member Nov 16, 2017 at 04:19 PM
0

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.

Show 3 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

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
Former Member

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.

0
Prabhu S Nov 16, 2017 at 06:31 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Nov 16, 2017 at 05:18 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded