skip to Main Content

I need to create a job that is going to be trigger after 15 minutes a post is created, I can set 15 minutes of delay, but imagine that the job is going to take 1 minute to process, in total will be 16 minutes, but the problem is that in SQS the maximum time is 15 minutes, what can I do?

2

Answers


  1. have you looked at Queue
    Click Hear

    And read Laravel document

    Is Scheduling

    This sounds like what you are looking for, I would just trigger the queue and delay when they make a booking so it executes 15 minutes after.

    Login or Signup to reply.
  2. Because of the requirement of the job completing every fifteen minutes (not just being triggered after fifteen minutes) you may want to look into webhooks, I don’t know if they would provide the solution that you need but it would allow the SQS end to query every fifteen minutes for the data and the timeout for completion on the post end would no longer be a factor.

    A quick google led me to the following package which might be an answer for you
    palpalani/laravel-queue-json-reader

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search