This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
Cron job return null #691
Unanswered
Bold-maverick
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
newbie here 👋☺️ )
I'm trying to deploy my first micro using Deta, however, I'm not sure how to correctly set up the cron job. (this is my first cloud deployment
basically, my script is to send an API call and then add the data to a spreadsheet:
def add_to_airtable(title=None, author='', url=''): if title is None:
So this is the only function I have in my code, with the get request outside of this function, and I have no idea how to integrate everything into the cron code
If I try the code below nothing happens:
@app.lib.cron() def cron_job(event): add_to_airtable()
Beta Was this translation helpful? Give feedback.
All reactions