This is a static archive of the previous Open Grid Forum GridForge content management system saved from host forge.ogf.org file /sf/wiki/do/viewPage/projects.occi-wg/wiki/JobSubmissionUseCaseScenario at Sun, 06 Nov 2022 12:20:20 GMT SourceForge : View Wiki Page: JobSubmissionUseCaseScenario

Project Home

Tracker

Documents

Tasks

Source Code

Discussions

File Releases

Wiki

Project Admin

Web Site
Search Wiki Pages Project: occi-wg     Wiki > JobSubmissionUseCaseScenario > View Wiki Page
wiki2441: JobSubmissionUseCaseScenario

Initial Job creation

There are 3 ways of doing this:

  1. Take defaults of the DRM
POST /jobs HTTP/1.1
Host: example.com
Authorization: Basic xxxxxxxxxxxxxxxxxxx
User-Agent: occi-client/1.0 (linux) libcurl/7.19.4 OCCI/1.0
Category: job; scheme="http://purl.org/occi/kind#";
label="Job Resource"
  1. Select a preconfigured scheme
POST /jobs HTTP/1.1
Host: example.com
Authorization: Basic xxxxxxxxxxxxxxxxxxx
User-Agent: occi-client/1.0 (linux) libcurl/7.19.4 OCCI/1.0
Category: job_normal_queue; scheme="http://example.com/jobs#";
title="Normal queue"
Content-Length: 0
  1. Customize the request
POST /jobs HTTP/1.1
Host: example.com
Authorization: Basic xxxxxxxxxxxxxxxxxxx
User-Agent: occi-client/1.0 (linux) libcurl/7.19.4 OCCI/1.0
Category: job; scheme="http://purl.org/occi/kind#";
label="Job Resource"
Category: myjob;
scheme="http://example.com/user/jobs/myjob#"; label="A high prio job"
Content-Length: 0
occi.job.queue='special_queue'
occi.job.cores=2

The response will always be:

HTTP/1.1 202 Accepted
Server: occi-server/1.0 (linux) OCCI/1.0
Date: Wed, 27 Jan 2010 17:26:42 GMT
Location: /jobs/123
Content-Length: 0

Each creation requests will result in the same response. The job is now in a state of pending. Note that the result contains a URL to allow a client check on the provisioning status.

Check status of job

Check the provisioning status...

GET /jobs/123 HTTP/1.1
Host: example.com
Authorization: Basic xxxxxxxxxxxxxxxxxxx
User-Agent: occi-client/1.0 (linux) libcurl/7.19.4 OCCI/1.0
Date: Wed, 27 Jan 2010 17:28:40 GMT
Content-Length: 0
HTTP/1.1 200 OK
Server: occi-server/1.0 (linux) OCCI/1.0
Date: Wed, 27 Jan 2010 17:28:42 GMT
occi.status.state: pending
Content-Length: 0

get job resource presentation

GET /jobs/123 HTTP/1.1
Authorization: Basic xxxxxxxxxxxxxxxxxxx
User-Agent: occi-client/1.0 (linux) libcurl/7.19.4 OCCI/1.0
Host: example.com
Accept: */*
HTTP/1.1 200 OK
Server: occi-server/1.0 (linux) OCCI/1.0
Date: Wed, 27 Jan 2010 17:26:40 GMT
Category: job; scheme="http://purl.org/occi/kind#";
label="Job Resource"
Category: myjob;
scheme="http://example.com/user/jobs/myjob#"; label="A high prio job"

Link: </jobs/123;suspend>; class="action";
rel="http://purl.org/occi/jobs/action#suspend"; title="Suspend"
Link: <jobs/123;kill>; class="action";
rel="http://purl.org/occi/jobs/action#kill"; title="Kill"

summary="My high prio job"
occi.job.queue='special_queue'
occi.job.cores=2
 




The Open Grid Forum Contact Webmaster | Report a problem | GridForge Help
This is a static archive of the previous Open Grid Forum GridForge content management system saved from host forge.ogf.org file /sf/wiki/do/viewPage/projects.occi-wg/wiki/JobSubmissionUseCaseScenario at Sun, 06 Nov 2022 12:20:23 GMT