-
Notifications
You must be signed in to change notification settings - Fork 0
Submission
@todo add auth docs.
POP's language is Agenda. The Agenda defines the workflow to be executed. In that, there are several endpoints that will in the end submit an Agenda. The simplest is an actual Agenda. The most feasible is the JSON + Agenda Template.
The workflow the Priority Operation Processing (POP) software will schedule and run. See Agenda
An Agenda Template that defines the Agenda to build with the incoming JSON payload as input. The result is an expressed Agenda for execution.
See Agenda Template for creating an Agenda Template
See Agenda for submission with your payload
You can use our Java client, or do direct submissions via the website UI. website
-
@todo Add docs on how to use website
Click here for example Agenda for Sample handler
{
"cid": "testCid-deleteme",
"customerId": "http://my.account.id/Account/2954979340",
"operations": \[
{
"payload": {
"actions": \[
{
"action": "exception",
"paramsMap": {
"sleepMilliseconds": 30000,
"logMessage": "This is a custom log message",
"exceptionMessage": "This is a custom exception message."
}
}
\],
"resultPayload": {
"data": "someData"
}
},
"type": "sample",
"id": "[op1.id](http://op1.id)",
"name": "[op1.name](http://op1.name)"
}
\],
"jobId": "theJob",
"linkId": "test-delete-me"
}
-
Select the Agenda Progress endpoint
-
Select byLinkId and add your linkId
You will see your progress for the resulting Agenda. NOTE: The above payload intentionally triggers an error on the Sample handler. Remove the entire exceptionMessage line to run a successful Agenda.
You have submitted an Agenda or AgendaTemplateID + payload that could not map to an Insight/Queue. Your Agenda didn't have an operation or parameter that was needed to determine the appropriate Insight.
We have a feature request to support a general queue, but for now we want to make sure we've approved the work submitted. You can make sure your Customer entry in the table has a resourcePoolId, and an Insight with the same resourcePoolId matches the criteria in your Agenda.
See how POP binds an Agenda to an Insight Queue for processing : 2. Scheduling
- Submission
- Scheduling
-
Execution
the ResourcePool
Agenda
the workflow
Agenda Template
the workflow definition
Customer
Insight
the scheduling queue definition
Operation Progress
the state of the running Agenda operations
Progress
the state of the running Agendas
ResourcePool
the processing resources
Agenda Service
the workflow submission
Progress Service
rolled up agenda progress summary
ResourcePool Service
getting work and updating progress
AgendaReclaimer
restarting stuck Agendas
AgendaRetry
retrying failed Agendas
DataObjectReaper
reaping expired data objects
PodReaper
reaping stuck Kubernetes pods