router.get('/', async (req, res, next) => {
try {
console.log('1123')
const data = await AV.Cloud.enqueue('hello', {name: 'world'}, {delay: 1000,deliveryMode:'atMostOnce'})
res.send({ code: 200, data: data });
} catch (err) {
res.send(err)
}
});
[2021-08-16T12:45:38.590498800Z][instance:web-staging] 1123
[2021-08-16T12:45:38.649125600Z][instance:web-staging] 1123
[2021-08-16T12:45:39.572000000Z][system] CloudQueue 正在运行 53cccc1a-0f20-4107-a23f-1b22abb5b5b9: hello({"name":"world"})
[2021-08-16T12:45:39.614000000Z][system] CloudQueue 运行成功 53cccc1a-0f20-4107-a23f-1b22abb5b5b9: hello >> {"result":"Hello world!"}
[2021-08-16T12:45:39.635000000Z][system] CloudQueue 正在运行 4ec30ab1-4477-4f3e-94b9-a4503ced85c7: hello({"name":"world"})