===== Developing admission rules ===== The admission rules are executed within the **add_micheline_job** function of OAR's IO lib. See https://github.com/oar-team/oar/blob/2.5/sources/core/common-libs/lib/OAR/IO.pm#L1507. The following perl variables can be used in admission rules: * $jobType * $ref_resource_list * $command * $infoType * $queue_name * $jobproperties * $startTimeReservation * $idFile * $checkpoint * $checkpoint_signal * $notify, * $job_name, * $job_env, * $type_list, * $launching_directory, * $anterior_ref, * $stdout, * $stderr, * $job_hold, * $project, * $use_job_key, * $import_job_key_inline, * $import_job_key_file, * $export_job_key_file, * $initial_request_string, * $array_job_nb, * $array_params_ref Unfortunately, this is not a polished API... and the names of the variables may not give obvious hints of what they are for or want they contains. Please use the Perl Data::Dumper in your trial and erros coding... Also, see the following pages for examples: * Admission rules section of the [[wiki:customization_tips#admission_rules|customization tips]] page * The examples provided in this [[wiki:some_examples_of_admission_rules|page]] * The currently installed admission rules with the ''oaradmissionrules -S -f'' command * The default admission rules [[https://github.com/oar-team/oar/blob/2.5/sources/core/database/pg_default_admission_rules.sql| in the sources]]