[openstack-dev] How to run period tasks by OpenStack way?

zhi changzhi1990 at gmail.com
Mon Aug 14 09:50:01 UTC 2017


Hi, all.

    There are two ways to run period tasks in OpenStack. One is using
"FixedIntervalLoopingCall" and the other is using the decorator named
"periodic_task.periodic_task". Both of them are defining in Oslo service
module.

    My question is, how to use them in non OpenStack environment? In other
words, how to use them in our own private projects? I have some demo codes
at [1] and [2]. But may be there is something wrong with them. They didn't
run periodically.

    Could someone give me some advice?


Thanks.
Zhi


[1]: http://paste.openstack.org/show/618295/
[2]: http://paste.openstack.org/show/618296/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20170814/e12b3fc3/attachment.html>


More information about the OpenStack-dev mailing list