Skip to content

Commit

Permalink
Sync cron task into example app
Browse files Browse the repository at this point in the history
  • Loading branch information
coilysiren authored Sep 27, 2024
1 parent 120d57d commit c0d5e6d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,12 @@ def etl(input):
storage.upload_file(output, data)


@app.cli.command("cron", help="Run cron job")
def cron():
conn = get_db_connection()
conn.execute("SELECT 1")
print("Hello from cron job")


if __name__ == "__main__":
main()

0 comments on commit c0d5e6d

Please sign in to comment.