Skip to main content
Solved

Postpone line close until background job is done

  • December 1, 2020
  • 3 replies
  • 131 views

krestensb
Sidekick (Customer)
Forum|alt.badge.img+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

Best answer by Hans Andersen

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”.

This topic has been closed for replies.

3 replies

Forum|alt.badge.img+14
  • Hero (Partner)
  • Answer
  • December 1, 2020

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”.


krestensb
Sidekick (Customer)
Forum|alt.badge.img+8
  • Author
  • Sidekick (Customer)
  • December 2, 2020

Thanks. I’ll try that.

It’s not used at all.


Forum|alt.badge.img+2
  • Do Gooder (Customer)
  • December 2, 2020

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