Platform Jobs

Platform jobs have their own namespace but are globally identifiable. For example: An import job is identifiable with its URI: /platform/import/v1/jobs/123 ; And the job 123 is also globally unique (Operations at tenant level is scheduled for future release

Overview

A platform job is a process that manages, creates, or transforms resources on the Intelligent Risk Platform. Long running operations are managed asynchronously. "Asynchronous calls do not block (or wait) for the API call to return from the server. Execution continues on in your program, and when the call returns from the server, a “callback” function is executed."

The Intelligent Risk Platform manages long-running processes as jobs. Most Platform API resources require little time to complete; the API can immediately return a 200 OK response code that indicates to the client that its request was successful.

But in some cases, the client may make a request that initiates a long-running and time-consuming process, e.g. the creation of the core objects, data migration, the running reports, and risk analysis. In such cases, the API adds a job to the job queue and returns a 201 Accepted response code to the client.

Such jobs tend to be rather long-running (time-consuming) and thereby pose a problem for RESTful APIs as long-running processes can be blocking.

Standard jobs

A standard job is a system-defined process that manages processes that are typically time-consuming and expensive. These processes include the creation of the core objects, the import or export of data, and catastrophe modeling.

Platform APIs expose operations that enable tenants to define and initiate jobs. Each Intelligent Risk Plaform API collects job management and tracking resources together.

Standard jobs return a 201 Created or 202 Accepted HTTP status code and a URI that enables polling of the job status.

Job TypeOperation
ALMCreate Model Job
ARCHIVE_EDMArchive EDM
BATCHCreate Batch Job
BH_ROLLUP_DOWNLOAD_CSVCreate Export Job
BULK_EDITExposure Bulk Edit, Create Import Job
BULK_GEOHAZCreate Bulk Geohaz Job
CEDE_IMPORTCreate Import Job
CLIMATE_CHANGECalculate Climate Change
CONVERT_ACCOUNT_CURRENCYCreate Currency Conversion Job
CONVERT_AGGREGATE_PORTFOLIO_CURRENCYCreate Currency Conversion Job
CONVERT_EVENT_RATE_LOSSConvert Event Rates and Losses
CONVERT_EVENT_RATE_LOSSConvert Event Rates and Losses
CONVERT_PORTFOLIO_CURRENCYCreate Currency Conversion Job
CONVERT_RESULT_CURRENCYCreate Currency Conversion Job
CONVERT_TREATY_CURRENCYCreate Currency Conversion Job
COPY_ACCOUNTCopy Job
COPY_AGGREGATE_PORTFOLIOCopy Job
COPY_PORTFOLIOCopy Job
COPY_TO_ARCHIVECreate Archives from Snapshot
CREATE_EDMCreate EDM
DATA_BRIDGE_DATABASE_SYNCData Bridge API
DATA_BRIDGE_NOTIFICATIONData Bridge API
DELETE_ACCOUNTDelete Account
DELETE_AGGREGATE_PORTFOLIODelete Aggregate Portfolio
DELETE_ARCHIVEDelete Archive
DELETE_EDMDelete EDM
DELETE_PORTFOLIODelete Portfolio
DEREGISTER_DATA_BRIDGE_EDMDeregister EDM
DLMCreate Model Job
DOWNLOAD_EDM Create Export Job
DOWNLOAD_EXPOSURE_RESOURCECreate Export Job
DOWNLOAD_LOCATION_RESULTSCreate Export Job
DOWNLOAD_PEQTCreate Export Job
DOWNLOAD_RDMCreate Export Job
DOWNLOAD_REPORTCreate Export Job
DOWNLOAD_RESULTSCreate Export Job
EDM2EDMCreate Export Job
EDM_UPGRADE Upgrade EDM Data Version
ENRICH_EXPOSURECreate Enrich Exposure Job
EXPOSURE_BATCH_EDITCreate Batch Job
EXPOSURE_BATCH_EDIT_WITH_GEOHAZCreate Batch Job
GEOCODINGGeocode Location
GEOHAZCreate Geohaz Job
GROUPINGCreate Group Job
HAZARDCreate Geohaz Job
HDCreate Model Job
HD_ALMCreate Model Job
HD_ALM_GROUPINGCreate Grouping Job
HD_GROUPINGCreate Grouping Job
HD_MAP_PERSPECTIVEConvert Financial Perspectives
HD_MARGINAL_IMPACTCreate Marginial Impact
MAP_PERSECTIVEConvert Financial Perspectives
MARGINAL_IMPACTCreate Marginal Impact
MRI_IMPORTCreate Import Job
OED_IMPORTCreate Import Job
PATERecalculate with PATE
PLT_TO_ELTConvert PLT to ELT Result
REGISTER_DATA_BRIDGE_EDMRegister EDM
RENAME_ANALYSISRename Analysis
REPORT_GENERATIONCreate Risk Data Report
RERUN_EPRecalculate EP and Statistics
RESTORE_ARCHIVERestore Database from Archive
SIMULATE_LOSSESSimulate PLT Analysis
STOCHASTIC_CEPCreate STEP job
UPLOAD_EDMCreate Import Job
UPLOAD_RDMCreate Import Job

Tracking Job Statuses

Each Platform API exposes distinct resources for tracking the status of API jobs.

A successful response returns the job object, which provides detailed information about this job including the submitTime, startTime, type, job details, and its status:

StatusDefinition
PENDINGThe job is pending. Follow by the QUEUED status.
QUEUEDThe job has been added to the queue. Follow by the RUNNING status.
RUNNINGThe platform is processing the job. Follow by the FINISHED or FAILED status.
FINISHEDThe job is finished.
FAILEDThe job has failed.
CANCEL_REQUESTEDThe platform has received a request to canel the job. Follow by the CANCELLING status.
CANCELLINGThe platform is cancelling the job. Follow by the CANCELLING status.
CANCELLEDThe job has been cancelled.

📷

NOTE

  • Some job types may be initiated by multiple operations. For example, v1 and v2 of the Analyze Climate Change operation both initiate a CLIMATE_CHANGE job type.
  • Some operations enable you to initiate multiple types of jobs. For example, the Import Exposures from File operation may initiate either an ALM_IMPORT or MRI_IMPORT job depending on the values specified in the request body.