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
...
Issue fork sync_clients-3501197
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
Comment #8
andreasderijckeComment #10
andreasderijckeComment #13
andreasderijcke