Hiển thị các bài đăng có nhãn cron format. Hiển thị tất cả bài đăng
Hiển thị các bài đăng có nhãn cron format. Hiển thị tất cả bài đăng

crontab standard format

Source: https://stackoverflow.com/questions/14710257/running-a-cron-job-at-230-am-everyday
Following the crontab standard format:
 +---------------- minute (0 - 59)
 |  +------------- hour (0 - 23)
 |  |  +---------- day of month (1 - 31)
 |  |  |  +------- month (1 - 12)
 |  |  |  |  +---- day of week (0 - 6) (Sunday=0 or 7)
 |  |  |  |  |
 *  *  *  *  *  command to be executed
It is also useful to use crontab.guru to check crontab expressions.

You can use the cron format:
var event = schedule.scheduleJob("*/5 * * * *", function() {
        console.log('This runs every 5 minutes');
    });
The cron format consists of:
*    *    *    *    *    *
                    
                    |
                     day of week (0 - 7) (0 or 7 is Sun)
                └───── month (1 - 12)
            └────────── day of month (1 - 31)
        └─────────────── hour (0 - 23)
    └──────────────────── minute (0 - 59)
└───────────────────────── second (0 - 59, OPTIONAL)

anti-pattern là gì

  Trong công nghệ và lập trình, Anti-pattern (mẫu phản diện) là những giải pháp bề ngoài có vẻ hiệu quả để giải quyết một vấn đề phổ biến, ...