1
0

chore:cron

This commit is contained in:
guorong.zheng 2024-07-02 17:28:21 +08:00
parent 85da159848
commit c5d01666c1
6 changed files with 8 additions and 8 deletions

@ -2,7 +2,7 @@ name: 'update schedule'
on:
schedule:
- cron: '0 0 * * *'
- cron: '0 22 * * *'
workflow_dispatch:
branches:
- master

@ -13,7 +13,7 @@ RUN sed -i 's@deb.debian.org@mirrors.aliyun.com@g' /etc/apt/sources.list \
RUN apt-get update && apt-get install -y chromium chromium-driver cron
RUN (crontab -l 2>/dev/null; echo "0 0 * * * cd /app && pipenv run python main.py scheduled_task") | crontab -
RUN (crontab -l 2>/dev/null; echo "0 22 * * * cd /app && pipenv run python main.py scheduled_task") | crontab -
EXPOSE 8000

@ -9,7 +9,7 @@
- 自定义模板,生成您想要的频道分类与频道顺序
- 支持多种获取源方式:线上检索、组播源、酒店源、订阅源
- 接口测速验效,响应时间、分辨率优先级,过滤无效接口
- 定时执行,北京时间每日 8:00 执行更新
- 定时执行,北京时间每日 6:00 执行更新
- 支持多种运行方式工作流、命令行、界面软件、Docker
- 更多功能请见[配置参数](./docs/config.md)

@ -9,7 +9,7 @@ Customize channel menus and automatically obtain and update the latest live sour
- Custom templates for creating desired channel categories and order
- Supports multiple source acquisition methods: online search, multicast source, hotel source, subscription source
- Interface speed testing and verification, with priority on response time and resolution, filtering out ineffective interfaces
- Scheduled execution at 8:00 AM Beijing time daily
- Scheduled execution at 6:00 AM Beijing time daily
- Supports various execution methods: workflows, command line, GUI software, Docker
- For more features, see [Config parameter](./docs/config_en.md)

@ -176,12 +176,12 @@ https://mirror.ghproxy.com/raw.githubusercontent.com/您的github用户名/仓
如果访问该链接能正常返回更新后的接口内容,说明您的直播源接口链接已经大功告成了!将该链接复制粘贴到 TVBox 等软件配置栏中即可使用~
- 注意:除了首次执行工作流需要您手动触发,后续执行(默认北京时间每日 8:00将自动触发。如果您修改了模板或配置文件想立刻执行更新可手动触发2中的 Run workflow 即可。
- 注意:除了首次执行工作流需要您手动触发,后续执行(默认北京时间每日 6:00将自动触发。如果您修改了模板或配置文件想立刻执行更新可手动触发2中的 Run workflow 即可。
## 步骤七:修改工作流更新频率
![.github/workflows/main.yml](./images/schedule-cron.png '.github/workflows/main.yml')
如果您想修改更新频率(默认北京时间每日 8:00可修改 on:schedule:- cron 字段。
如果您想修改更新频率(默认北京时间每日 6:00可修改 on:schedule:- cron 字段。
### 1. 强烈不建议修改,因为短时间内的接口内容并无差异,过高的更新频率与高耗时运行的工作流都有可能被判定为资源滥用,导致仓库与账户被封禁的风险。

@ -176,12 +176,12 @@ https://mirror.ghproxy.com/raw.githubusercontent.com/your github username/reposi
If you can access this link and it returns the updated interface content, then your live source interface link has been successfully created! Simply copy and paste this link into software like TVBox in the configuration field to use~
- Note: Except for the first execution of the workflow, which requires you to manually trigger it, subsequent executions (default: daily at 8:00 am Beijing time) will be automatically triggered. If you have modified the template or configuration files and want to execute the update immediately, you can manually trigger (2) Run workflow.
- Note: Except for the first execution of the workflow, which requires you to manually trigger it, subsequent executions (default: daily at 6:00 am Beijing time) will be automatically triggered. If you have modified the template or configuration files and want to execute the update immediately, you can manually trigger (2) Run workflow.
## Step 7: Modify Workflow Update Frequency
![.github/workflows/main.yml](./images/schedule-cron.png '.github/workflows/main.yml')
If you want to modify the update frequency (default: daily at 8:00 am Beijing time), you can modify the on:schedule:- cron field.
If you want to modify the update frequency (default: daily at 6:00 am Beijing time), you can modify the on:schedule:- cron field.
### 1. It is strongly discouraged to make modifications, as there is no difference in the content of the interface in a short period of time. Both too frequent updates and high-consumption running workflows may be judged as resource abuse, leading to the risk of the repository and account being banned.