List of key-value pairs: [ { item1 }, { item2 }, { item3 }, { itemYYZ } ]
Automatically generated fields = Nested Tasks, Log, Lock Date, Done Date, lockID
A nested item holds a collection of tasks to do within its TaskScript key
Schema + Definition is below: [
{
User-defined unique identifier for items in a DynamoDB Table (String),
User-defined non-unique identifier for an item, can equal itemID if non-nested (String),
What gets executed when PyAnamo verifies the item is still available (Map / Dictionary),
Output of executing the task script (Map / Dictionary),
todo, locked, done or Wall_Time_Exceeded for nested items if running PyAnamo with a wall time limit in seconds (String),
AWS-Batch JobID, EC2 instance ID or Public IP of computer that locked the item (String),
New line character count of stdout + stderr if single item, or count of how many nested tasks are “done” (Number),
Date at which the item was locked (String),
Date at which the was marked done (String),
Count of the total nested tasks for the item (Number),
Randomly generated string to prevent multiple instance pyanamo fetching + processing the same item (String)
}
]
[
{
"KeySchema": [ { "AttributeName": "ItemState", "KeyType": "HASH" }, { "AttributeName": "itemID", "KeyType": "RANGE" } ],
"Projection": { "ProjectionType": "ALL" }, "ProvisionedThroughput": { "ReadCapacityUnits": 10, "WriteCapacityUnits": 5 }
},
{
"KeySchema": [ { "AttributeName": "ItemState", "KeyType": "HASH" }, { "AttributeName": "taskID", "KeyType": "RANGE" }],
"Projection": { "ProjectionType": "ALL" }, "ProvisionedThroughput": { "ReadCapacityUnits": 10, "WriteCapacityUnits": 5 }
},
{
"KeySchema": [ { "AttributeName": "ItemState", "KeyType": "HASH" }, { "AttributeName": "InstanceID", "KeyType": "RANGE" } ],
"Projection": { "ProjectionType": "ALL" }, "ProvisionedThroughput": { "ReadCapacityUnits": 10, "WriteCapacityUnits": 5 }
},
{
"KeySchema": [ { "AttributeName": "ItemState", "KeyType": "HASH" }, { "AttributeName": "Log_Length", "KeyType": "RANGE" } ],
"Projection": { "ProjectionType": "ALL" }, "ProvisionedThroughput": { "ReadCapacityUnits": 10, "WriteCapacityUnits": 5 }
}
]