Skip to content

sanjeev662/cron-job

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Wake Render – GitHub Actions

Wakes https://job-scrapper-8hwq.onrender.com at:

IST UTC (cron) Schedule
2:55 AM 21:25 UTC 55 21 * * *
6:50 AM 01:20 UTC 20 1 * * *
1:08 PM 07:38 UTC 8 7 * * *
  • Timeout: 2 minutes per request (Render cold start)
  • Retries: 3 attempts on failure
  • Manual run: Actions → "Wake Render Service" → "Run workflow"

Steps to use this

1. Turn this into a GitHub repo (if it isn’t already)

cd /Users/sanjeev/Desktop/sanjeev-github/cron-job
git init
git add .
git commit -m "Add GitHub Actions wake-up workflow"

2. Create a repo on GitHub and push

  • GitHub.com → New repository (e.g. cron-job or wake-render).
  • Public is best (no Actions limits). Private works with limits.
  • Do not add a README/.gitignore if the repo is new and you already have files locally.

Then:

git remote add origin https://github.com/YOUR_USERNAME/YOUR_REPO_NAME.git
git branch -M main
git push -u origin main

3. Confirm the workflow is enabled

  • Open the repo on GitHub → Actions.
  • You should see "Wake Render Service".
  • First run will be at the next scheduled time (2:55 AM, 6:50 AM, or 1:08 PM IST).

4. Test immediately (optional)

  • ActionsWake Render ServiceRun workflowRun workflow.
  • In the run, open the ping job and check the log: you should see something like HTTP 200 in …s (or another code). Even failures here still trigger Render to wake.

5. Change the URL or times later

Edit .github/workflows/wake-render.yml:

  • URL: replace https://job-scrapper-8hwq.onrender.com/ping in the curl line.

  • Times: edit the schedule.cron lines. Times are in UTC:

    • 2:55 AM IST → 55 21 * * *
    • 6:50 AM IST → 20 1 * * *
    • 1:08 PM IST → 8 7 * * *

Format: minute hour day month weekday (UTC).


Why this is more reliable than cron-job.org

  • No 30s timeout; this workflow uses 2 minutes.
  • No “output too large” limit; the workflow only needs the request to be sent.
  • Runs on GitHub’s schedule; Render is less likely to treat these as synthetic.
  • Free for public repos, with no extra sign-up.

Your Render app will be woken at 2:55 AM, 6:50 AM, and 1:08 PM IST every day once the workflow is on the default branch and pushed.

About

Automated Service Activator: A GitHub Actions workflow designed to prevent hosting services from sleeping by scheduling periodic health-check pings.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors