# Flink Jobs

BatchService(LMS) with the help of flink jobs calculate consumption progress, scores and generates certificates. Also there is Merge User Courses flink job which is used to merge course and certificate data from one user account to another.

Flink Jobs in LERN have been to developed to support LMS (Learning Management System) journey of a user. Jobs are used to compute data necessary to calculate user's progress and validate the same against certificate issuance criteria and then trigger Sunbird RC to create and issue certificate to the user.&#x20;

## Data-pipeline Overview

<div data-full-width="true"><figure><img src="/files/UZF7OuChhiBNJ0t5F5XP" alt=""><figcaption><p><strong>Data-pipeline Overview Diagram</strong></p></figcaption></figure></div>

## Certificate Generation Jobs Execution Flow

<div data-full-width="true"><figure><img src="/files/m2Pvvtr7quBWbibjQUmG" alt=""><figcaption><p><strong>Certificate Generation jobs execution flow diagram</strong></p></figcaption></figure></div>

{% embed url="<https://youtu.be/pRsRcv_hs8E?list=PLUrm4D0K_7nxlaZZYirokpx5Mo-jMd64M&t=4223>" %}
Certificate generator flink job
{% endembed %}

## Additional Reading

{% embed url="<https://project-sunbird.atlassian.net/wiki/spaces/SBDES/pages/1520042020/Course+Infra+-+Async+Jobs+-+Implementation+Design>" %}

{% embed url="<https://project-sunbird.atlassian.net/wiki/spaces/SBDES/pages/1782087720/Flink+jobs+for+certificates+generation+and+processing>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://lern.sunbird.org/use/developer-guide/lms-service/lms-flink-jobs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
