-
|
Hi there, I have the python script(main.py) run fine in the local machine. But it doesn't work through deta.sh with cron set to run everyday. deta cron set "10 16 * * ? *" Below is the error log from deta.sh. Traceback (most recent call last): Could someone please help me to figure out how to fix it? Thanks a lot. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
In the root of your micro directory there should be a for example: |
Beta Was this translation helpful? Give feedback.
-
|
please follow the cron example here: https://docs.deta.sh/docs/micros/cron |
Beta Was this translation helpful? Give feedback.
please follow the cron example here: https://docs.deta.sh/docs/micros/cron
make sure you import
appfromdetaand use it