You can run the async code by importing
AsyncQStash from qstash
and awaiting the methods.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
AsyncQStash from qstash
and awaiting the methods.from qstash import QStash
client = QStash("<QSTASH-TOKEN>")
msg = client.message.get("<msg-id>")
from qstash import QStash
client = QStash("<QSTASH-TOKEN>")
client.message.cancel("<msg-id>")
from qstash import QStash
client = QStash("<QSTASH-TOKEN>")
# cancel more than one message
client.message.cancel_many(["<msg-id-0>", "<msg-id-1>"])
# cancel all messages
client.message.cancel_all()
Was this page helpful?