adobe / spacecat-api-service

Edge Delivery services experience success as a service automation: SpaceCat + Star Catalogue
Apache License 2.0
3 stars 1 forks source link

fix: Update createImportJob implementation based dev endpoint testing #343

Closed blefebvre closed 2 weeks ago

blefebvre commented 2 weeks ago

Use latest spacecat-shared-data-access release: https://github.com/adobe/spacecat-shared/pull/261 to get around this error:

Invalid KeyConditionExpression: Attribute name is a reserved keyword; reserved keyword: status

Also, update the logic in getAvailableImportQueue() to search for an available import queue correctly, which will prevent the situation we observed on dev where 2 jobs were able to claim the same queue:

image

With this change deployed to dev, the API service is rejecting new import jobs once the queues are all claimed:

Screenshot 2024-06-10 at 4 20 36 PM
github-actions[bot] commented 2 weeks ago

This PR will trigger a minor release when merged.

solaris007 commented 2 weeks ago

:tada: This PR is included in version 1.42.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket: