Truncate some index names so it also works with AWS DocumentDB.
@@ -61,10 +61,12 @@ class ActionExecutionSchedulingQueueItemDB(stormbase.StormFoundationDB,
meta = {
'indexes': [
- {'fields': ['action_execution_id']},
- {'fields': ['liveaction_id']},
- {'fields': ['original_start_timestamp']},
- {'fields': ['scheduled_start_timestamp']},
+ # NOTE: We limit index names to 65 characters total for compatibility with AWS
+ # DocumentDB
+ {'fields': ['action_execution_id'], 'name': 'ac_exc_id'},
+ {'fields': ['liveaction_id'], 'name': 'lv_ac_id'},
+ {'fields': ['original_start_timestamp'], 'name': 'orig_s_ts'},
+ {'fields': ['scheduled_start_timestamp'], 'name': 'schd_s_ts'},
]
}
