Python in Scheduler


maybe stupid question. Is there a way to run Python script in scheduler? I’m not able to trigger Python script.
I’m not very familiar with Groovy and it would be much easier to run Python scripts instead learning groovy :slight_smile:

Thank you,


It’s not possible right now but it’s something we’ve been wanting to do for a long time. Just that nobody has had the time to work on it.

Hi @Martin_Bek!
Maybe you can create page with puthon script and twitch it via curl in crontab?

Yes what works is to write the script in a wiki page using any script language you wish (jython for example) and the the in the scheduler job you just call it, using xwiki.getDocument("page reference").getRenderedContent().

Right now the scheduler only support Groovy content so you will always have to write a bit of Groovy. That being said there is various ways to execute a Python script from Groovy. @vmassol indicated one which is XWiki oriented and probably the easiest to use and maintain.