启动中,请稍后
#2129
Replies: 1 comment
-
docker有备份就行,重启数据都在。任务定时错误,去定时任务那里修改,不要还list文件 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
问题描述:报错 parse error at 7
尝试解决方式:
使用下面脚本能查出了一个定时错误,修改了cronlist定时文件,还是打不开
`
import re
import sys
Function to validate cron syntax in a file and output results to another file
def validate_cron_syntax(input_file_path, output_file_path):
# Define regular expressions for each cron field
minute_expr = r"(*|([0-5]?\d)(-([0-5]?\d)(/[0-5]?\d)?)?)(,([0-5]?\d)(-([0-5]?\d)(/[0-5]?\d)?)?)"
hour_expr = r"(*|(1?\d|2[0-3])(-(1?\d|2[0-3])(/(1?\d|2[0-3]))?)?)(,(1?\d|2[0-3])(-(1?\d|2[0-3])(/(1?\d|2[0-3]))?)?)"
day_expr = r"(*|?|L|W|([1-2]?\d|3[0-1])(-([1-2]?\d|3[0-1])(/([1-2]?\d|3[0-1]))?)?)(,([1-2]?\d|3[0-1])(-([1-2]?\d|3[0-1])(/([1-2]?\d|3[0-1]))?)?)"
month_expr = r"(*|[1-9]|1[0-2]|JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)(-([1-9]|1[0-2]|JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)(/([1-9]|1[0-2]))?)?(,([1-9]|1[0-2]|JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)(-([1-9]|1[0-2]|JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)(/([1-9]|1[0-2]))?)?)"
weekday_expr = r"(*|?|L|[0-7]|SUN|MON|TUE|WED|THU|FRI|SAT)(-([0-7]|SUN|MON|TUE|WED|THU|FRI|SAT)(/[0-7])?)?(,([0-7]|SUN|MON|TUE|WED|THU|FRI|SAT)(-([0-7]|SUN|MON|TUE|WED|THU|FRI|SAT)(/[0-7])?)?)*"
Check if file paths are provided
if len(sys.argv) < 3:
print("Usage: python cron_syntax_checker_separated.py <input_file_path> <output_file_path>")
else:
input_file_path = sys.argv[1]
output_file_path = sys.argv[2]
validate_cron_syntax(input_file_path, output_file_path)
`
难道只有删除容器,重新部署这一方法吗? 里面拉了好多任务,都得重新弄,
3.1. 不删除容器的话,怎么解决问题呢?
3.2 删除容器的话,怎么备份订阅呢?
Beta Was this translation helpful? Give feedback.
All reactions