# PP-506,PP-507: Add support for requesting resources with logical 'or' and conditional operators

**URL:** <https://community.openpbs.org/t/pp-506-pp-507-add-support-for-requesting-resources-with-logical-or-and-conditional-operators/416>\
**Category:** Developers\
**Created:** [January 19, 2017, 10:43pm UTC](https://community.openpbs.org/t/pp-506-pp-507-add-support-for-requesting-resources-with-logical-or-and-conditional-operators/416 "2017-01-19T22:43:38Z")\
**Posts on this page:** 4\
**Page:** 4

<div class="post-metadata">

**Author:** ![sgombosi](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/sgombosi/32/50_2.png) [@sgombosi](https://community.openpbs.org/u/sgombosi)\
**Post date:** [March 28, 2017, 6:19pm UTC](https://community.openpbs.org/t/pp-506-pp-507-add-support-for-requesting-resources-with-logical-or-and-conditional-operators/416/62 "2017-03-28T18:19:51Z")

</div>

How is all this going to interact with automated workflow managers/monitors like Cylc and SMS?

---

<div class="post-metadata">

**Author:** ![arungrover](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/arungrover/32/40_2.png) [@arungrover](https://community.openpbs.org/u/arungrover)\
**Post date:** [March 31, 2017, 12:26am UTC](https://community.openpbs.org/t/pp-506-pp-507-add-support-for-requesting-resources-with-logical-or-and-conditional-operators/416/63 "2017-03-31T00:26:25Z")

</div>

Some of us (Bill, Bhroam, Jon and myself) worked on capturing the use cases and the motivation behind those use cases that we thought were missing from the design page.  
I have added the outcome of the discussion on the design page and it now mentions the use cases for multiple resource requests and node filtering as well.

Please have a look at it.

It seems the design proposal so far is in the right direction (for Use case 1 under conditional requests) where it allows users to submit jobs with multiple resource requests and also makes PBS scheduler select one of the resource requests according to how it has been prioritized (by admin or by user).  
User case 2 probably needs something like “place=group=” to place the job on the nodes that have same resource value. But, since this can be requested in multiple resource requests, it needs to work in conjunction with use case 1.  
Use case 3 however, can be addressed differently by providing a special way of packing the jobs on nodes where the nodes are selected in a way that they can be fully and equally occupied on the basis of cores the job has requested for.

For use cases related to filter nodes, a filter (as proposed in the design) provided with each resource request (that supports conditional operators) can be applied to address all the use cases.

---

<div class="post-metadata">

**Author:** ![arungrover](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/arungrover/32/40_2.png) [@arungrover](https://community.openpbs.org/u/arungrover)\
**Post date:** [April 3, 2017, 10:27pm UTC](https://community.openpbs.org/t/pp-506-pp-507-add-support-for-requesting-resources-with-logical-or-and-conditional-operators/416/64 "2017-04-03T22:27:50Z")

</div>

As discussed, design proposal of having to use conditional operators in resource request has moved to “[this page](https://pbspro.atlassian.net/wiki/display/PD/PP-507%3A+To+support+jobs+to+be+able+to+filter+out+nodes+by+allowing+them+to+use+conditional+operators+in+resource+reque)” now.  
It’s design [discussion is here](http://community.openpbs.org/t/pp-507-add-support-for-filtering-nodes-as-per-the-job-request/496).

---

<div class="post-metadata">

**Author:** ![arungrover](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/arungrover/32/40_2.png) [@arungrover](https://community.openpbs.org/u/arungrover)\
**Post date:** [May 23, 2017, 3:54pm UTC](https://community.openpbs.org/t/pp-506-pp-507-add-support-for-requesting-resources-with-logical-or-and-conditional-operators/416/65 "2017-05-23T15:54:57Z")

</div>

Currently we have moved resources away from this project. So this project is stalled for now.

[Previous page](https://community.openpbs.org/t/pp-506-pp-507-add-support-for-requesting-resources-with-logical-or-and-conditional-operators/416.md?page=3)
