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

refactor: remove default attempts #2414

Merged
merged 4 commits into from Jan 3, 2023
Merged

refactor: remove default attempts #2414

merged 4 commits into from Jan 3, 2023

Conversation

djabarovgeorge
Copy link
Contributor

What change does this PR introduce?

Why was this change needed?

In order to remove the default attempts on the queue.

Other information (Screenshots)

await this.queue.add(id, data, options);
}

private stepContainsFilter(data: JobEntity, onFilter: string) {
return data.step.filters.some((filter) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return data.step.filters.some((filter) => {
return data.step.filters?.some((filter) => {

I think this causes the tests to fail, when no filters are available on a step

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it is part of the issue I already have it locally but the test still fails, I am looking into it maybe there is another issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope it probably was this one (the confusion on my side was due to the failing localstack locally + jobs from the previous run that was not handled)

@djabarovgeorge djabarovgeorge merged commit c146d1e into next Jan 3, 2023
@djabarovgeorge djabarovgeorge deleted the webhook-filter branch January 3, 2023 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants