-
-
Notifications
You must be signed in to change notification settings - Fork 336
Add forks #230
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
Conversation
dramatiq/forks_set.py
Outdated
_type_ = c_byte | ||
|
||
|
||
class ForksSet(Structure): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If anyone has a better name for this functionality other than |
Also, if someone with access to a windows machine could give this a try I'd be super grateful. Steps to try on windows:
|
What do you think of |
Would you advise using a fork function when using apscheduler to for periodic jobs?
I bit late, but for what is worth, it does work on windows |
@CaselIT I think not. I'm maintaining periodiq, and periodiq scheduler must be a single process. Side processes purpose is for all your worker processes (e.g. prometheus exporter). |
Well, a fork function creates a new process for each one, so technically it is a single process as far as the scheduler is concerned. Of course you cannot control it when starting it that was, so for a scheduler that has a cli it maybe not the best way, but |
@CaselIT the functionality is intended for side-loading code next to workers, so in that sense I think it's appropriate. You just need to be careful if you run multiple sets of workers. |
Thanks for the reply. Yes, of course in case of multiple workers only one of them should start the scheduler or multiple jobs could be triggered. |
No description provided.