Comments (4)
Upgraded to 8.0.0-rc2 but still got the same problem.
Still, there is no log or evidence that I could use to find out what happened.
from orleans.
How are you verifying that the timer is not firing? Could you show the relevant code? When you say that the grain continues to function, I assume this means that there are no logs showing that the grain has been deactivated. Is that correct?
from orleans.
This is the timer function code:
private async Task PublishOrderbook(object arg)
{
if (_orderbookUpdatedTimestamp <= _orderbookSentTimestamp)
{
if ((DateTime.UtcNow - _orderbookUpdatedTimestamp).TotalSeconds == 5)
_logger.LogCritical("Orderbook not Updated Recently, Pair={Pair}, LastUpdateInSeconds={LastUpdateInSeconds}, Hostname={Hostname}",
Pair, (DateTime.UtcNow - _orderbookUpdatedTimestamp).TotalSeconds, Dns.GetHostName());
return;
}
_orderbookSentTimestamp = DateTime.UtcNow;
_logger.LogCritical("Orderbook Updated Successfuly, Pair={Pair}, LastUpdateInSeconds={LastUpdateInSeconds}, Hostname={Hostname}",
Pair, (DateTime.UtcNow - _orderbookUpdatedTimestamp).TotalSeconds, Dns.GetHostName());
int count = 40;
var book = _engine.Book;
var asks = book.AskSide;
var bids = book.BidSide;
_orderBook = new OrderBookStream()
{
Pair = Pair,
Asks = asks.Take(count).ToDictionary(a => (decimal)a.Value.Price, a => (decimal)a.Value.Quantity),
Bids = bids.Take(count).ToDictionary(a => (decimal)a.Value.Price, a => (decimal)a.Value.Quantity),
BestAskPrice = book.BestAskPrice,
BestAskQuantity = book.BestAskQuantity,
BestBidPrice = book.BestBidPrice,
BestBidQuantity = book.BestBidQuantity,
BestStopAskPrice = book.BestStopAskPrice,
BestStopBidPrice = book.BestStopBidPrice,
Timestamp = book.LastBookUpdate
};
var subject = $"{typeof(OrderBookStream).FullName}_{Pair}";
await _natsCommand.PublishAsync(subject, _orderBook);
}
Yeah not only I'm sure the grain is not deactivated (no log) but also I have a grain method that I can query the difference between when the timer fired and how much time passed from the grain activation. Everything seems fine except the timer.
from orleans.
Further investigation, I realized that this occurred on the silo level not at the grain level, which means that all timers which belong to each grain on a specific silo won't fire at all. Even if I registered them again (when the grain was already active), they would fire only for the first time.
from orleans.
Related Issues (20)
- Calls to grains never complete on cluster change HOT 1
- Serialization issues - Orleans 8.0.0 HOT 1
- [Clustering] Support cleaning up abandoned ClusterIds
- Orleans Streaming: in [SetCursor] method, If last purged token does not exists, do not throw an exception, just start from the oldest message in cache HOT 2
- Function Suggestion: RedisGrainStorage
- After upgrading Orleans8. x, Reminder cannot reliably trigger ReceiveReminder() HOT 9
- `orleans-grains` counter gets incremented multiple times by stateless worker grains
- Running Orleans via project references for debugging HOT 3
- Proposal: Support TTL for purging grain state for inactive grains HOT 1
- Orleans 7.x does not support multiple stateless worker grain types with different `StatelessWorkerPlacement.MaxLocal` values HOT 1
- One Way time Duration. Is it too long? HOT 2
- Implementing Oneway Grain to Grain Media Streaming with Different Nodes and Silos in the Same Cluster
- New Microsoft.Extensions.Configuration stuff breaks existing Orleans project with "Could not find Clustering provider named 'Default'." HOT 5
- Failing DeepCopy when implementing multiple IConverter<,> on single class
- Mark explicitly removed or obsolete ids are reserved
- Azure App Service fails to start with never ending Orleans connection exceptions HOT 3
- Issues running Silo in Docker Compose: Unexpected direct silo connection on proxy endpoint HOT 5
- ISiloBuilder.ConfigureApplicationParts not in version 8 ? HOT 7
- How do I correctly call the DeactivateOnIdle() method within the Grain? Getting error! HOT 2
- The best suggestion for grain state storage? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from orleans.