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

Set up mbgl-tile-renderer to run as a task worker service #17

Merged
merged 9 commits into from
Feb 1, 2024

Conversation

rudokemper
Copy link
Member

Goal

To enable mbgl-tile-renderer to be run as a task worker service that can poll a queue for new requests. This PR adds support for Azure Storage Queue.

Screenshot

image

What I changed

  • Add a new file azure_queue_service.js which works with Azure Storage Queue to process a queue message containing a JSON body with the expected values required for rendering.
  • These values are passed to initiateRendering, which now takes an outputDir to be able to specify a volume mount in addition to the standard output/ dir. Currently, this is hard-coded as /maps which is the directory we are mounting on the Docker container in Azure.
  • Once rendering has been completed, the tool deletes the queue message from the storage queue.

What I'm not doing here

  • More work is needed on validations and throwing exceptions given this new deployment environment. That will come next.
  • Integration work to update a Postgres db table upon completion.

@rudokemper rudokemper linked an issue Feb 1, 2024 that may be closed by this pull request
@rudokemper rudokemper merged commit 522b582 into main Feb 1, 2024
1 check passed
@rudokemper rudokemper deleted the azure-queue-service branch February 1, 2024 01:55
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.

output should be absolute path
1 participant