dbader / schedule

Python job scheduling for humans.
https://schedule.readthedocs.io/
MIT License
11.73k stars 959 forks source link

How to declare "returns" from function #526

Closed gianandreabertello closed 2 years ago

gianandreabertello commented 2 years ago

How can I assign the return from a function called by a job to a variable?

def launch1(param1): return 'done'

return_value (??) = schedule.every().day.at("08:35").do(launch1, param1)

SijmenHuizenga commented 2 years ago

Return values are not stored by the schedule library. If you want to store variables use class-fields or global variables.