# Is it possible to execute queued jobs automatically after computing nodes up?

**URL:** <https://community.openpbs.org/t/is-it-possible-to-execute-queued-jobs-automatically-after-computing-nodes-up/1288>\
**Category:** Users/Site Administrators\
**Created:** [November 8, 2018, 3:54pm UTC](https://community.openpbs.org/t/is-it-possible-to-execute-queued-jobs-automatically-after-computing-nodes-up/1288 "2018-11-08T15:54:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hiroyuki-sato](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/hiroyuki-sato/32/168_2.png) [@hiroyuki-sato](https://community.openpbs.org/u/hiroyuki-sato)\
**Post date:** [November 8, 2018, 3:54pm UTC](https://community.openpbs.org/t/is-it-possible-to-execute-queued-jobs-automatically-after-computing-nodes-up/1288/1 "2018-11-08T15:54:38Z")

</div>

Hello, members.

I’m newbie PBSpro.

Is it possible to execute queued jobs automatically after computing nodes up?  
I want to execute the following job automatically after nodes up.

```
my pbs:
                                                            Req'd Req'd Elap
Job ID Username Queue Jobname SessID NDS TSK Memory Time S Time
--------------- -------- -------- ---------- ------ --- --- ------ ----- - -----
65.my-cluster0 user workq test.qsub -- 1 1 -- -- Q --

```

Our PC use computing nodes during the night only. (22:00 ~ 7:00)  
All nodes use for another purpose in the daytime.  
It is mean that all nodes stop during the daytime.

During the daytime, PBS server enqueues jobs.  
And When computing time start, execute those jobs.

My problem is this queue does not run automatically after nodes up.  
(At least few minutes.)

When I submit a new job(qsub newjob), the stopped job start at the same time.

Could you tell me any idea?

Best regards.

Environment

- OS: CentOS7

- PBS: pbspro-server-ohpc-14.1.2 (OpenHPC package)

---

<div class="post-metadata">

**Author:** ![mkaro](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/mkaro/32/85_2.png) [@mkaro](https://community.openpbs.org/u/mkaro)\
**Post date:** [November 8, 2018, 6:53pm UTC](https://community.openpbs.org/t/is-it-possible-to-execute-queued-jobs-automatically-after-computing-nodes-up/1288/2 "2018-11-08T18:53:10Z")

</div>

Hello @hiroyuki-sato,

The queued jobs won’t start until the next scheduler iteration occurs. You can reduce the interval of time between iterations using qmgr…  
Qmgr: set server scheduler\_iteration = 30  
This will reduce the scheduler iteration from 600 seconds (the default) to 30 seconds.

You should also check out the section on primetime and non-primetime queues in the administrators guide here: [https://www.pbsworks.com/SupportGT.aspx?d=PBS-Professional,-Documentation](https://www.pbsworks.com/SupportGT.aspx?d=PBS-Professional,-Documentation)

Please continue to reach out to the community if you have more questions.

Thanks,

Mike

---

<div class="post-metadata">

**Author:** ![hiroyuki-sato](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/hiroyuki-sato/32/168_2.png) [@hiroyuki-sato](https://community.openpbs.org/u/hiroyuki-sato)\
**Post date:** [November 9, 2018, 5:51am UTC](https://community.openpbs.org/t/is-it-possible-to-execute-queued-jobs-automatically-after-computing-nodes-up/1288/3 "2018-11-09T05:51:32Z")

</div>

Hello, @mkaro

Thank you for the reply.  
It worked as I expected.
