Skip to content

Worker package refactor #15

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 3 commits into from
Mar 23, 2022
Merged

Worker package refactor #15

merged 3 commits into from
Mar 23, 2022

Conversation

cretz
Copy link
Member

@cretz cretz commented Mar 22, 2022

What was changed

Split temporalio/worker.py package into multiple files in temporalio/worker. Also added test timeout. No real logic changed (as evident by the tests not really changing).

Why?

Preparation for workflow code which means the worker file was getting too big.

@cretz cretz requested a review from a team March 22, 2022 22:53
)
from .worker import Worker, WorkerConfig

__all__ = [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if this is required since you just listed every import in this file.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not required, but greatly helps Sphinx autodoc and autocomplete and is needed for import * (though I don't expect that use case to emerge much)

@cretz cretz merged commit 256bc4a into temporalio:main Mar 23, 2022
@cretz cretz deleted the worker-package branch March 23, 2022 17:39
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.

2 participants