Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TaskDisplayName and increment AttemptCount in DynamoDB #1

Merged
merged 2 commits into from
May 17, 2024

Conversation

dtinth
Copy link
Collaborator

@dtinth dtinth commented May 17, 2024

This pull request introduces enhancements to the DynamoDB data schema and task status update logic in src/main.ts to improve debugging and task tracking capabilities.

  • Adds the TaskDisplayName attribute to DynamoDB operations to include the task's display name in the database. This change aids in easier identification and debugging of tasks.
  • Implements logic to increment the AttemptCount attribute in DynamoDB for each task attempt. This is achieved by modifying the updateTaskStatusInDynamoDB function to include an UpdateExpression that increments AttemptCount when a task's status is updated to "RUNNING". This enhancement allows for better tracking of task attempts.

For more details, open the Copilot Workspace session.

@dtinth dtinth merged commit f7a5d64 into main May 17, 2024
1 check passed
@dtinth dtinth deleted the dtinth/enhance-dynamodb branch May 17, 2024 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant