• You are not logged in.

#1 Sept. 23, 2013 09:35:26

eagle_79
Registered: 2013-09-17
Posts: 10
Reputation: +  0  -
Profile   Send e-mail  

exit code job python for return false

can i help me for the return code false for python for exit to cycle

tks

Offline

#2 Sept. 23, 2013 11:14:15

admin
Registered: 2012-03-15
Posts: 289
Reputation: +  1  -
Profile   Send e-mail  

exit code job python for return false

Just add
result = False
in your code.
Here are some sample code: http://www.fminer.com/run-code/
For example:
if not variables.has_key("counter1"):
variables["counter1"] = 0
else:
variables["counter1"] += 1
if variables["counter1"] >= 10:
result = False
we change result to False when variables reach limit.

Offline

Board footer

Moderator control

Powered by DjangoBB