Skip to content

Hangfire jobs

Many invoiceR tasks run in the background as recurring jobs, controlled by Hangfire. These include for example the master data import, the posting export to the ERP (see ERP plugins), the import of documents and clean-up tasks.

Which jobs exist and when they run is stored in the table conf.IrRecurringJobs. Each entry has a cron expression that defines the schedule, and a configuration as JSON.

Under Administration > Job-Ausführung you see all recurring jobs of your tenant:

ColumnContent
IdID of the job (HangfireId)
JobDescription
CronSchedule as cron expression, for example 0 6 * * * for daily at 6 am
Time ZoneTime zone of the schedule
Next Execution, Last ExecutionWhen the job runs next and when it last ran

To run a job immediately, for example after the ERP has provided new master data:

  1. Open Administration > Job-Ausführung.
  2. Click Run Task (arrow icon) in the row of the job.

The job is queued immediately. The regular schedule stays unchanged.

You need the permission Hangfire for this.

Administration > Job-Ausführung with the list of jobs and the “Run Task” button at the end of each row

The Hangfire dashboard shows running, scheduled, succeeded and failed executions with their logs. There you see for example how many master data records an import created, changed or deleted, or why an export failed.

  1. Under Administration, click Hangfire dashboard. invoiceR opens the backend login page in a new window.
  2. Log in with your user.
  3. Click Hangfire on the backend start page. Alternatively open https://<server>/hangfire directly.

You need the permission Hangfire dashboard for this.