Skip to content
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

Implementing thread synchronization via decorators #1

Open
Dreamlone opened this issue Mar 8, 2023 · 0 comments
Open

Implementing thread synchronization via decorators #1

Dreamlone opened this issue Mar 8, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers release 0.2.0 Implementation is required by the specified release

Comments

@Dreamlone
Copy link
Member

Now sometimes it may be necessary to synchronize threads (for example, when there are several pipelines in one service that use the same local file). It is implemented through Event object.

But such a functionality can be implemented via decorators and become available for custom users functions such as:

@threads_synchronization
def my_custom_function(**params):
     return None

And then we can just add a decorator for threads synchronization during function executon and that's it

@Dreamlone Dreamlone added enhancement New feature or request good first issue Good for newcomers labels Mar 8, 2023
@Dreamlone Dreamlone added the release 0.2.0 Implementation is required by the specified release label Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers release 0.2.0 Implementation is required by the specified release
Projects
None yet
Development

No branches or pull requests

1 participant