Jobs
Last updated
Last updated
The Job is utilized for the purpose of generating QR Code images specifically for the reserved DIAL codes of a collection. This generation process is initiated using the process Id that is generated when the DIAL code reserve API is invoked.
Once the DIAL codes are reserved for the collection, the Job comes into action, leveraging the associated process Id to create QR Code images. These QR Code images are then linked to the respective reserved DIAL codes, providing a quick and accessible method for identifying and accessing the collection.
By employing the Job in this manner, the platform ensures that each reserved DIAL code is visually represented through QR Code images, facilitating ease of use and enhancing the collection's traceability and accessibility. This process enables users to conveniently scan the QR Code to obtain information and interact with the associated collection, promoting seamless user experiences and efficient content management within the platform.
During the deployment process, the configuration for all knowledge-platform-jobs is sourced from the sunbird-learning-platform repository. On the other hand, for local setups, the configuration is taken from the respective job folders within the knowledge-platform-jobs repository.
Kafka Topic:
Job configuration variables:
Variable | Purpose |
---|---|
lp.tmp.file.location | Used to specify machine directory where the qrcode images are to be packaged at. Default value: "/tmp" |
qr.image.imageFormat | Used to specify qrcode image file format (Example: png) Default value: "png" |
qr.image.bottomMargin | Used to specify qrcode image bottom margin. Default value: 0 |
qr.image.margin | Used to specify qrcode image margin. Default value: 1 |
Sample Kafka event: