pokt-scan / pocket-ml-testbench

MIT License
0 stars 0 forks source link

Manager: Add same trigger restrictions based on blocks #64

Closed RawthiL closed 4 months ago

RawthiL commented 4 months ago

Some tasks need to be run at most once per session (like [signature][tokenizer]). Support for this kind of checks needs to be added.

RawthiL commented 4 months ago

There is a race condition on how the manager updates the node data if there are multiple managers. I will use this issue to update that as well. The following will be done:

This way we can operate on single tasks ans avoid race conditions when updating the node data. Node data will serve only as an aggregator of general data, like address, service and last seen.

RawthiL commented 4 months ago

Also this change will make pruninng easier as we can implement TTL on records of these tasks and remove code used to mantain that!

RawthiL commented 4 months ago

I will add https://github.com/pokt-scan/pocket-ml-testbench/issues/41 in the same PR, we need to close this as fast as possible