新聞中心
這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
創(chuàng)新互聯(lián)Moralis教程:MoralisJobs
有時(shí)您想執(zhí)行長時(shí)間運(yùn)行的函數(shù),并且不想等待響應(yīng)。 ?Cloud Jobs? 就是為此而生的。

創(chuàng)新互聯(lián)公司專注于招遠(yuǎn)企業(yè)網(wǎng)站建設(shè),成都響應(yīng)式網(wǎng)站建設(shè)公司,商城網(wǎng)站制作。招遠(yuǎn)網(wǎng)站建設(shè)公司,為招遠(yuǎn)等地區(qū)提供建站服務(wù)。全流程按需制作,專業(yè)設(shè)計(jì),全程項(xiàng)目跟蹤,創(chuàng)新互聯(lián)公司專業(yè)和態(tài)度為您提供的服務(wù)
定義一個(gè)Job
在您的云功能中定義Job。
Moralis.Cloud.job("myJob", (request) => {
// params: passed in the job call
// headers: from the request that triggered the job
// log: the Moralis Server logger passed in the request
// message: a function to update the status message of the job object
const { params, headers, log, message } = request;
message("I just started");
return doSomethingVeryLong(request);
});安排Job
您可以通過單擊右上角的“Schedule a job”在儀表板的“Jobs”部分安排Job。
選擇描述、要運(yùn)行的Job并在需要時(shí)提供參數(shù)
當(dāng)您配置好您的工作后,您可以通過按右下角的“Schedule”來確認(rèn)它。
當(dāng)前文章:創(chuàng)新互聯(lián)Moralis教程:MoralisJobs
當(dāng)前鏈接:http://m.5511xx.com/article/ccioops.html


咨詢
建站咨詢
