如何在后台任务中测试timetrigger? [英] How to test timetrigger in background tasks?

查看:183
本文介绍了如何在后台任务中测试timetrigger?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。

如何测试后台任务使用时间触发器?我的意思是,我们不能将它设置为少于15分钟,这意味着我们必须等待至少15分钟才能看到任何东西。还有其他方法可以缩短这个等待时间吗?

How can one test the use of a time trigger for a background task? I mean, we can't set it to less than 15 minutes and that means that we'll have to wait at least 15 minutes for seeing anything. is there any other way to reduce this waiting time?

谢谢

Luis Abreu

Luis Abreu

推荐答案

我首先要做的是,使用
时区更改触发器测试后台任务的功能。  然后我将触发器切换到时间触发器......是的,等待15 - 30分钟。
What I do is first, test the functionality of the background task by using the time zone change trigger.  Then I switch the trigger to a time trigger and...yes, wait 15 - 30 minutes.


这篇关于如何在后台任务中测试timetrigger?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆