Skip to content

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