-
In Vercel we have a 60 second limit on execution. I want to set up a timer that checks how we're going for time and whether we need Quirrel to call us back again. I've tried the following, but am not having any luck.
How can this be done? |
Beta Was this translation helpful? Give feedback.
Answered by
Skn0tt
Apr 8, 2021
Replies: 1 comment 7 replies
-
You can access the queue itself by the following: const queue = Queue(
"api/example",
async (id) => {
await queue.enqueue(...)
}
)
export default queue You'll want to think about the following:
|
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
mattjis
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can access the queue itself by the following:
You'll want to think about the following:
id
andoverride: true
). This likely won't work as you expect it to. Create a totally new job instead by using a randomid
(or leave it blank).