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

...

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

grietdk created an issue. See original summary.

andreasderijcke changed the visibility of the branch 3501197-using-error-level to hidden.

andreasderijcke changed the visibility of the branch 3501197-using-error-level to hidden.

andreasderijcke changed the visibility of the branch 3501197-using-error-level to active.

  • andreasderijcke committed ad2ea2f2 on 3501197-using-error-level
    Issue #3501197 Fix missing nullable type for NULL default value.
    

andreasderijcke’s picture

andreasderijcke’s picture

Assigned: Unassigned » andreasderijcke

andreasderijcke’s picture

Assigned: andreasderijcke » Unassigned
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.