ericclemmons / ericclemmons/sync-github-pivotal

Race-conditions with Issue Create

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
4
Forks
1
PR merge metrics
No merged PRs in 30d

Description

As expected, GitHub fires both an `issue_create` and `labeled` event (with the default label) immediately after each other.

Sometimes, the first event creates the issue for the second to reference.

Other times, both events cause the hook to lookup a non-existent story, create it, and now there are two.

Naturally, a job queue or a single server would resolve this, but I want to avoid too much complexity.

Since I'm using serverless (for now), this seems like a reasonable solution:
> https://serverless.com/blog/aws-lambda-sqs-serverless-integration/

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.