Skip to content

Python as a plugin #521

Discussion options

You must be logged in to vote

You have to return an exit code in a json structure. Have a look into the examples from Cronicle: https://github.com/jhuckaby/Cronicle#sample-node-plugin

My custom python plugins exits with this lines:

...
print('{"complete": 1, "code": 0, "description": "successfully executed"}')
sys.exit(0)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
You must be logged in to vote
1 reply
@asharma2040
Comment options

Answer selected by asharma2040
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants