---
title: nrForceHarvest
source: https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/harvest/nrforceharvest
---

## Syntax

```js
  nrForceHarvest(nr as Object) as Void
```

## Description

Do harvest events and logs immediately. It doesn't reset the harvest timer.

## Arguments

| Arguments | Description             |
| --------- | ----------------------- |
| `nr`      | New Relic Agent object. |

## Return

Nothing.

## Example

```js
  	nrForceHarvest(m.nr)
```
