Scheduled Tasks not running

Monday, November 25, 2024 2:16:02 PM
  • Posted: Monday, March 27, 2023 12:37 AM
  • 12
Hello -

On my latest installation of GN V2, the scheduled tasks are not executing.  I can manually run the tasks by clicking 'Run Now', but the tasks do not run on their scheduled settings.  Example is the "Send Emails" task which should run every 60 seconds by default.

The tasks are enabled and set to run on 1 minute increments.  The only task that is enabled is the standard Send Emails task.

My installation is GN V2.0.0
OS is Microsoft Windows 10.0.20348
ASP.NET is v4.0.30319


Are there any IIS or server settings that must be configured to allow the scheduled tasks to run?  

Any assistance would be appreciated.  Thanks!
0
  • Posted: Monday, March 27, 2023 2:19 PM
  • Team
  • 152
Hi,
Please check the log to see if you can find the reason for the issue.
If you want to disable all scheduled tasks for the application, you can do so by modifying the 'DisableHostedService' setting in the 'Application' section of the 'appsettings.json' file located in the 'App-Data' folder. The value for this setting should be set to false.

If the issue still persists and you're making changes to the database, please ensure that the 'customer' collection contains an email address for 'builtin@background-task-record.com'. If this email doesn't exist, you can try copying it from the demo database of Grandnode2
0
  • Posted: Tuesday, March 28, 2023 4:58 PM
  • 12
The problem was the missing record in the Customer collection.

Thank You!
0
back to top
Filters