feat!: add traces and upgrade pgboss (MAPCO-10632)#19
Merged
Conversation
NivGreenstein
requested changes
Jun 3, 2026
| export const S3_BUCKET = Symbol('S3Bucket'); | ||
| export const TILES_STORAGE_LAYOUT = Symbol('TilesStorageLayout'); | ||
| export const HEALTHCHECK = Symbol('HealthCheck'); | ||
| export const getServiceIdentifier = (projectName: string): string => `${SERVICE_NAME}-${projectName}`; |
| this.logger.error({ err, msg: 'pgboss error' }); | ||
| }); | ||
| await this.pgBoss.start(); | ||
| await this.pgBoss.createQueue(this.queueName); |
Collaborator
There was a problem hiding this comment.
Remove
let MQP initialize the queues
Contributor
Author
There was a problem hiding this comment.
in pgboss v10 and above the fetch fun wont work silently and that why we have to initial queue, and not let the metatile queue populator to do so
| @@ -86,61 +89,130 @@ export class TileProcessor { | |||
| } | |||
|
|
|||
| public async processTile(tile: TileWithMetadata): Promise<void> { | |||
Collaborator
There was a problem hiding this comment.
Refactor to make more readable code
| "@map-colonies/js-logger": "^2.0.0", | ||
| "@map-colonies/read-pkg": "^1.0.0", | ||
| "@map-colonies/schemas": "^1.9.0", | ||
| "@map-colonies/schemas": "https://ghatmpstorage.blob.core.windows.net/npm-packages/schemas-422499b194cb9f022e362b84c5c59dcb9d8962bb.tgz", |
Collaborator
There was a problem hiding this comment.
Release new version before merge
NivGreenstein
approved these changes
Jun 14, 2026
| "@map-colonies/js-logger": "^2.0.0", | ||
| "@map-colonies/read-pkg": "^1.0.0", | ||
| "@map-colonies/schemas": "https://ghatmpstorage.blob.core.windows.net/npm-packages/schemas-422499b194cb9f022e362b84c5c59dcb9d8962bb.tgz", | ||
| "@map-colonies/schemas": "https://ghatmpstorage.blob.core.windows.net/npm-packages/schemas-d69ec2bb4389d18fe8e6a6801fa452fcb833c744.tgz", |
Collaborator
There was a problem hiding this comment.
needs to be updated before closing the pr. please submit a PR in schemas repo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issues: MAPCO-6176
Closes MAPCO-10632
Further information:
added traces to the whole job process, upgrade pg-boss to 12.8v