Using error level causes resulting in 'Unknown cause' Exception

Created on 21 January 2025, 4 months ago

Problem/Motivation

Using PAUSE_CAUSE_ERROR_LVL_[X] as cause when pausing the ync client, results in an Exception ('Unknown cause') in the SyncClientPause constructor.
Currently only PAUSE_CAUSE_FORCED, PAUSE_CAUSE_MAINTENANCE, PAUSE_CAUSE_MANUAL are allowed.

Steps to reproduce

  • Use the sync client from the sync_client_example module and do a request that results in a 504 status code.
  • Process the queue will result in 'Exception: Unknown cause: sync_error_lvl_1'.

Proposed resolution

  • Move the PAUSE_CAUSE_ERROR_LVL_[X] constants from SyncClientInterface to the SyncClientPauseInterface
  • Update code where these constants are used
  • Update SyncClientPause constructor to also allow PAUSE_CAUSE_ERROR_LVL_[X]

Remaining tasks

...

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024