Skip to content

Worker: deprecate old EventHandler method signatures (#358) #496

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 24, 2022

Conversation

thiell
Copy link
Collaborator

@thiell thiell commented Nov 23, 2022

Old EventHandler signatures (eg. ev_read(self, worker)) have been deprecated since 1.8. This patch adds DeprecationWarnings for 1.9.

Also deprecating Worker.current_* variables in the documentation.
New EventHandler's method arguments should be used instead.

Also updated all tests that were still relying on old signatures.

Closes #358.

@thiell thiell force-pushed the b19_deprecate_358 branch 6 times, most recently from 30e2fe3 to dbf3857 Compare November 24, 2022 01:34
Old EventHandler signatures (eg. ev_read(self, worker)) have been
deprecated since 1.8. This patch adds DeprecationWarnings for 1.9.

Also deprecating Worker.current_* variables in the documentation.
New EventHandler's method arguments should be used instead.

Also updated all tests that were still relying on old signatures.

Closes cea-hpc#358.
@thiell thiell added this to the 1.9 milestone Nov 24, 2022
@thiell thiell merged commit 269ddbd into cea-hpc:master Nov 24, 2022
@thiell thiell deleted the b19_deprecate_358 branch November 24, 2022 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecate old EventHandler method signatures
2 participants