function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kostya15kostya15 

Waiting for task processing by external server

Hi guys,

 

I would like to send processing requests from Apex to external server and get notified as fast as my task is finished. I could theoretically call StartProcessing function, get TaskId back from this function, then run GetStatusTask function inside of my loop. Unfortunately it not possible due to limitation for number of callout calls.

 

Somehow external server have to notify my function back that processing is finished and get results. 

 

If my external server write something into SF database and I periodically query this status from DB, than I will have problem with a limit of SQL statements execution.

 

Even if I create trigger which react to this DB change, this trigger cannot inform my function back.

 

Maybe there is some way to make some global variables or you know some other workaround?

 

Any help is very appreciated.

 

Best regards,

  Kostja