Issue
Scheduled reports are not running on time and are consistently late. Running the report manually works properly.
Causes
By default, RStudio Connect permits 2 scheduled reports to run concurrently. This can lead to scheduled reports not executing on time in the following scenarios:
- Long-running reports that overlap other reports scheduled execution times
- Multiple reports that are too closely scheduled to run
Resolution
RStudio Connect can be configured using the ScheduleConcurrency
parameter. This value is the number of scheduled reports permitted to execute in parallel. To increase the number of concurrently scheduled reports, edit the RStudio Connect config: /etc/rstudio-connect/rstudio-connect.gcfg
to include a [Applications]
section with this setting.
For example:
[Applications]
ScheduleConcurrency=20
We suggest adjusting this value to fit your environment. The above example allows for up to 20 reports to execute in parallel.
After making those changes, a restart of the RStudio Connect service is required for the changes to take effect.
The command to restart RStudio Connect is:
systemctl restart rstudio-connect
Support Ticket
If you still have issues after completing the above, you can always lodge a support ticket, where our group of friendly, and incredibly knowledgeable staff can assist with any issues that you may be having. You can submit a ticket here:
Comments