Skip to content

feat!: add traces and upgrade pgboss (MAPCO-10632)#19

Merged
Powfu2 merged 28 commits into
masterfrom
merge-feat-traces-to-new
Jun 24, 2026
Merged

feat!: add traces and upgrade pgboss (MAPCO-10632)#19
Powfu2 merged 28 commits into
masterfrom
merge-feat-traces-to-new

Conversation

@Powfu2

@Powfu2 Powfu2 commented Jun 3, 2026

Copy link
Copy Markdown
Contributor
Question Answer
Bug fix
New feature
Breaking change
Deprecations
Documentation
Tests added
Chore

Related issues: MAPCO-6176
Closes MAPCO-10632

Further information:
added traces to the whole job process, upgrade pg-boss to 12.8v

@NivGreenstein NivGreenstein self-requested a review June 3, 2026 12:38
@Powfu2 Powfu2 changed the title Merge feat traces to new feat!: add traces and upgrade pgboss (MAPCO-10632) Jun 3, 2026
Comment thread .github/workflows/pull_request.yaml
Comment thread src/common/constants.ts Outdated
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}`;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

not being used

this.logger.error({ err, msg: 'pgboss error' });
});
await this.pgBoss.start();
await this.pgBoss.createQueue(this.queueName);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Remove
let MQP initialize the queues

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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> {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Refactor to make more readable code

Comment thread package.json Outdated
"@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",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Release new version before merge

Comment thread .github/workflows/pull_request.yaml
Comment thread package.json Outdated
"@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",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

needs to be updated before closing the pr. please submit a PR in schemas repo

@Powfu2 Powfu2 merged commit d755c1d into master Jun 24, 2026
8 checks passed
@Powfu2 Powfu2 deleted the merge-feat-traces-to-new branch June 24, 2026 09:30
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.

2 participants