Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

execute a periodic task


i'm doing a thesis work on nova and i need to add a periodic task to execute. I'll find the decorator "@periodic_task" and it seems to do what i want. But now i don't know how to add some code to execute. I try to add a module in the source and launch a script installation, but my file isn't compiled. Then i try insert a function in a module ( whit the decorator, but also it didn't work (i insert a simple print to file to test it).

Maybe it is a really simple thing, but i'm totally new to python and openstack developing, and can't find an answer on the documentation.