-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add ability to specify scheduler implementation in configuration #994
Conversation
Conflicts: src/core/Akka/Actor/Internals/ActorSystemImpl.cs
…plementation in config
Also can we just delete the TaskBasedScheduler? |
I think we can. there is really no reason to use that one anymore. btw. there are some failing tests for the TestScheduler |
Haha damn @rogeralsing bitten by VS2015 and R#9 it implemented my test scheduler as if I had all the new shiny features, I will have to fix this tomorrow I left my laptop at work tonight :) |
Conflicts: src/core/Akka/Actor/Scheduler/TaskBasedScheduler.cs
…#9 being all fancy)
cc @akkadotnet/developers anyone know what the build error is about? |
Weird, can we kick off another build and see what happens?
|
@akkadotnet/developers sometimes TeamCity can't parse out the exact error right there on the front page. When this happens I check the build log (one of the navigation tabs on that page) and scroll to the bottom. Here's what I found: [22:24:21][Step 1/1] Looks like one of the unit tests for the MSTest version of Akka.TestKit failed. |
Do the rest of us have access to restart builds? |
@rogeralsing not currently. Only authenticated users can do that. I'd propose adding something similar to Akka's CI robot for that. But I don't think this is an intermittent failure - this is the first time I've ever seen a TestKit test fail. |
ConfigureEventStream(); | ||
ConfigureProvider(); | ||
ConfigureScheduler(); |
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.
this is the problem, the scheduler needs to be configured after the provider so the dedicated thread scheduler can access the provider
I found the cause for this, the configurescheduler have been moved so it configures the scheduler and tries to start the dedicated thread scehduler too early when some system things have not yet been set up (e.g. termination task) |
Ah dangit, I will fix that up. I wasnt sure if we wanted to die if the Cheers
|
Conflicts: src/core/Akka/Actor/Scheduler/TaskBasedScheduler.cs
Seriously I can't win here. That test failure looks to be a timeout and I hope not related to these changes. And that test runs locally.... |
Add ability to specify scheduler implementation in configuration
This PR should allow the configs akka.scheduler.implementation value to actually be used and it will default to the DedicatedThreadScheduler, a few things to note still:
This solves my big issue for now in that the implementation can be selected by config, but there is still some work to get it nailed, @rogeralsing what are your thoughts on doing a direct port of the LightArrayRevolverScheduler as closely as we can? I am happy to do this if we all agree it is a good idea. Or do we just want to finish off the DedicatedThreadScheduler and wrap some tests around it?
Cheers
Stefan