prominence-eosc / prominence

PROMINENCE server
Apache License 2.0
2 stars 0 forks source link

Add a "policies" section to JSON job description? #92

Closed alahiff closed 4 years ago

alahiff commented 5 years ago

Should we gather all policy related options into a single "policies" section in the json? E.g.:

"policies":{
  "numberOfRetries": 2,
  "preferences":{
    "regions":[
      "IRIS", "FedCloud"
    ]
  }
}
alahiff commented 5 years ago

https://github.com/prominence-eosc/prominence/issues/91 would be included in the "policies" section of course.

alahiff commented 5 years ago

Jobs can now contain blocks like the following:

"policies":{
  "placement":{
    "requirements":{
      "sites":[
      ],
      "regions":[
      ]
    },
    "preferences":{
      "sites":[
      ],
      "regions":[
      ]
    }
  }
}

i.e. the default requirements and preferences can be overridden. Any group restrictions are of course still taken into account, so user's can't try to use resources they're not allowed to use.

alahiff commented 4 years ago

Closing, this has existed for quite a while now.