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

feat: polling loop using generator, manging job flow with jobHandler (MAPCO-4439) #2

Merged
merged 5 commits into from
Jul 30, 2024

Conversation

almog8k
Copy link
Collaborator

@almog8k almog8k commented Jul 22, 2024

Question Answer
Bug fix
New feature
Breaking change
Deprecations
Documentation
Tests added
Chore

Further information:
Added polling loop using generator to dequeue init task with one of the job_types we support ["Ingestion_New", "Ingestion_Update", "Ingestion_Swap_Update"].
And get the relevant job and decide what's the job flow by his type.

config/default.json Outdated Show resolved Hide resolved
src/services/updtaeLayerHandler.ts Outdated Show resolved Hide resolved
src/services/jobProcessor.ts Outdated Show resolved Hide resolved
src/common/constants.ts Outdated Show resolved Hide resolved
};
}

public async consumeAndProcess(): Promise<void> {

Choose a reason for hiding this comment

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

is this function is called each interval? how?

src/index.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@CL-SHLOMIKONCHA CL-SHLOMIKONCHA left a comment

Choose a reason for hiding this comment

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

Copy link
Contributor

@CL-SHLOMIKONCHA CL-SHLOMIKONCHA left a comment

Choose a reason for hiding this comment

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

few comments but great work.

Copy link
Contributor

@CL-SHLOMIKONCHA CL-SHLOMIKONCHA left a comment

Choose a reason for hiding this comment

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

Good job!
tests coverage will be fix in the next pull request when job-handlers will be implemented

@almog8k almog8k merged commit 80eb912 into master Jul 30, 2024
6 of 8 checks passed
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.

3 participants