Need to run two functions in same time without ptreads

hi, i have a function that runs sometimes more times such as hours. so i need to get that running time while running it, so i decided to run two function same time then can get time from second function.

or is there any method for that,

Without much in the way of details, I can suggest 2 things.

  1. Guzzle Promises. Probably not what you want but it’s the easy option.
  2. Use a queue. (AWS Elastic Beanstalk?)

If you use a queue with more than 1 queue runner then your long-running process will run without blocking other processes.

Again, sorry for the generic advice but given the details you gave, those are the only 2 answers I’ve got. :slight_smile:

Cheers!
=C=