Solved

Postpone line close until background job is done

  • 1 December 2020
  • 3 replies
  • 120 views

Userlevel 3
Badge +8

Hi,

I often make changes to objects with background jobs.

Some times for some reason a job takes a long time from posted to executed.

In the mean time the line is closed, and the job fails.

Do you have a good solution for that?

BR Kresten

icon

Best answer by Hans Andersen 1 December 2020, 13:45

View original

This topic has been closed for comments

3 replies

Userlevel 6
Badge +14

If you starts you background with Transaction_SYS.Deferred_Call, then you have set the queue_id parameter. Nr 4 (Touch Apps Queue (Push)) will execute nearly instant.

You can define your own queues under “batch queue configuration”.

Userlevel 3
Badge +8

Thanks. I’ll try that.

It’s not used at all.

Badge +2

If you are aware the background job will consume more time to complete then better you configure the job in a separate queue to make sure it doesn't affect other jobs. However, you can RMB on the job and click on Exclude for Cleanup to avoid killing the job automatically with system default cleanup process