-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate un(de)serializable cursor & add config
Version 2.0 of the gem will forbid cursors that are not (de)serializable using built in types. This is because adapters serialize to JSON, and we must ensure this is possible in a lossless fashion. Ahead of this change, we introduce a deprecation warning, as well as a configuration which makes it possible to enable the strict behavior. This configuration can be set globally, and/or at the job level. For instance, it is possible to enable it globally, but disable it for a jobs that have yet to be migrated, or alternatively to enable it for jobs that are already compliant, but leave it disabled globally to allow for non-compliant jobs. In theory, any non-compliant jobs are "already broken", however it is possible that the job works around the "bug" in (de)serialization. One known scenario is where jobs complete rapidly enough to never actually require cursor serialization, and as such never actually encounter the problem of un(de)serializable cursors in production environments. However, this could technically occur at any time.
- Loading branch information
1 parent
300b5ca
commit 33112f0
Showing
5 changed files
with
250 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.