[go: up one dir, main page]

Rollup/node: add batcher and injector RPC to clear them with query parameters

What, why, how

Adds two RPC that allows tho clear the batcher or the injector structure based on some criteria.

Adds to the RPC /admin/injector/queues the following queries arguments

  • order_under=<int>: clears all operations in the injection heap that has an priority order inferior to it
  • drop_no_order=<bool>: removes all operations in the injection heap that has no priority order.

if this parameters are used with the tag query argument only operation of that tag are considered.

Adds the DELETE RPC /admin/batcher/queue

This RPC allows to clear messages from the batcher heap. By default when no query argument are givent it will fully clear the batcher heap. Otherwise, similarly to the other modified RPC, it has the following two queries arguments:

  • order_under=<int>: clears all messages in the batcher heap that has an priority order inferior to it
  • drop_no_order=<bool>: removes all messages in the batcher heap that has no priority order.

Merge request reports

Loading