You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 10, 2019. It is now read-only.
I kept getting errors regarding calls to 'fork()' despite having set number_of_forks_per_worker to 0 per the documentation. I thought the issue was in start_activity_workers(runner.rb), because 'use_forking' isn't set when the local fork_count is 0, but it appears that the error is in the following code in runner.rb. It calls fork regardless of the setting
def self.spawn_and_start_workers(json_fragment, process_name, worker)
workers = []
num_of_workers = json_fragment['number_of_workers'] || FlowConstants::NUM_OF_WORKERS_DEFAULT
should_register = true
num_of_workers.times do
workers << fork do
set_process_name(process_name)
worker.start(should_register)
end
should_register = false
end
workers
end
The text was updated successfully, but these errors were encountered:
So, as per the docs, it absolutely should work with number_of_forks_per_worker set to 0. I'll address that in my fork shortly. If this is currently a blocker for you (though given the latency I wouldn't be surprised if not), it is possible to use write/plug in a different executor, or simply have a ruby process which calls worker.start.
Did anything happen with this? I'm developing with aws-flow-ruby in a mixed windows/mac/linux environment, and disappointed that running workers / deciders on Windows doesn't work straightforwardly.
I'll look at using Cygwin, but would be great if there's a patch available to fix this.
# for freeto subscribe to this conversation on GitHub.
Already have an account?
#.
I kept getting errors regarding calls to 'fork()' despite having set number_of_forks_per_worker to 0 per the documentation. I thought the issue was in start_activity_workers(runner.rb), because 'use_forking' isn't set when the local fork_count is 0, but it appears that the error is in the following code in runner.rb. It calls fork regardless of the setting
The text was updated successfully, but these errors were encountered: