# Request checking script

In lxplus, do:

```
$ git clone git@github.com:cms-sw/genproductions.git
$ cd genproductions/bin/utils
$ python request_fragment_check.py -h
```

This will bring up a list of things that the script checks. It also displays the list of optional arguments:

```
optional arguments:
  -h, --help            show this help message and exit
  --prepid PREPID [PREPID ...]
                        check mcm requests using prepids
  --ticket TICKET       check mcm requests using ticket number
  --bypass_status       don't check request status in mcm
  --bypass_validation   proceed to next prepid even if there are errors
  --apply_many_threads_patch
                        apply the many threads MG5_aMC@NLO LO patch if
                        necessary
  --dev                 Run on DEV instance of McM
  --debug               Print debugging information

```

{% hint style="info" %}
Note that the code acceps list of prepids, but a single ticket (not to kill the database with too much access). When you use a list of prepids or the --ticket option locally, you should also specify --bypass\_validation.&#x20;

Unless the --apply\_many\_threads\_patch is specified it won't do any patches but will still check the existence of the patch.&#x20;
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cms-pdmv.gitbook.io/project/mccontact/request-checking-script.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
