The following code adds a task to a queue with options.
In index.html
:
In Enqueue.java
:
In Worker.java
:
Tasks added to this queue will execute by calling the request handler at the URL /worker
with the parameter key
. They will execute at the rate set in the queue.xml
file, or the default rate of 5 tasks per second.