bcgov / sbc-pay

ServiceBC common payment services for one-time and long-enagement partners
Apache License 2.0
7 stars 39 forks source link

21721 - Add ordering to FTP_POLLER #1568

Closed seeker25 closed 3 months ago

seeker25 commented 3 months ago

Issue #: https://github.com/bcgov/entity/issues/21721

Description of changes: Fixes:

  File "/sbc-pay/jobs/ftp-poller/venv/src/gcp-queue/python/gcp-queue/src/gcp_queue/gcp_queue.py", line 209, in publish
    future = publisher.publish(topic, payload, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/sbc-pay/jobs/ftp-poller/venv/lib/python3.12/site-packages/google/cloud/pubsub_v1/publisher/client.py", line 346, in publish
    raise ValueError(
ValueError: Cannot publish a message with an ordering key when message ordering is not enabled.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the sbc-pay license (Apache 2.0).

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud