How to move Jobs which are set to Ready2EXE=True from one Job Queue to another Job Queue.

How to move Jobs which are set to Ready2EXE=True from one Job Queue to another Job Queue.

Parents Reply
  • The below will help, you can modify the number of queues you want to move at one and also put if jobs related to a specific process need to move.

    exec QBM_PTriggerDisable 'JobQueue', 'QBM_TUJobqueue'
    Update JobQueue set Queue = '\New_JobQueue'
    where UID_Job in (
    Select top 200 UID_Job from JobQueue with (nolock) where
    JobChainName in ('ProcessName')
    and
    Ready2EXE = 'TRUE'
    and Queue = '\Old_JobQueue'
    )
    exec QBM_PTriggerEnable'JobQueue', 'QBM_TUJobqueue'

Children
No Data