Process workflows scheduled task fails due to missing 'eventid'
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start with admin/tool/trigger/classes/event_processor.php at the record_workflow_trigger() call shown in the backtrace, then trace how process_workflows.php supplies eventid when it records a workflow trigger. Reproduce the scheduled task failure using the reported Moodle 3.10.4 setup and inspect the history insert. Done when the task no longer attempts to write a null eventid and the workflow history is recorded successfully.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The "Process workflows" scheduled cron task fails repeatedly. The query running is trying to insert a null value into a table that doesn't allow null values. The 'eventid' column within the mdl_tool_trigger_workflow_hist table on the site's database is numerical values only.
... started 07:35:25. Current memory use 19.5MB.
Executing workflow: 1
... used 9 dbqueries
... used 0.052000045776367 seconds
Scheduled task failed: Process workflows scheduled task. (tool_trigger\task\process_workflows),Error writing to database
Debug info:
Column 'eventid' cannot be null
INSERT INTO mdl_tool_trigger_workflow_hist (workflowid,number,timecreated,event,eventid) VALUES(?,?,?,?,?)
[array (
0 => 1,
1 => 34,
2 => 1624430125,
3 => 'false',
4 => NULL,
)]
Backtrace:
* line 1357 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
* line 1403 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
* line 300 of /admin/tool/trigger/classes/event_processor.php: call to mysqli_native_moodle_database->insert_record()
* line 175 of /admin/tool/trigger/classes/task/process_workflows.php: call to tool_trigger\event_processor::record_workflow_trigger()
* line 142 of /admin/tool/trigger/classes/task/process_workflows.php: call to tool_trigger\task\process_workflows->process_item()
* line 91 of /admin/tool/trigger/classes/task/process_workflows.php: call to tool_trigger\task\process_workflows->process_queue()
* line 253 of /lib/cronlib.php: call to tool_trigger\task\process_workflows->execute()
* line 120 of /lib/cronlib.php: call to cron_run_inner_scheduled_task()
* line 73 of /lib/cronlib.php: call to cron_run_scheduled_tasks()
* line 178 of /admin/cli/cron.php: call to cron_run()
- Moodle version: 3.10.4 (Build: 20210510)
- "pluginversion":"2021030400"
- Ngôn ngữ chính
- PHP
- Star
- 46
- Fork
- 29
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của catalyst/moodle-tool_trigger
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 15/100
catalyst/moodle-tool_trigger#253 ·
-
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 45/100
catalyst/moodle-tool_trigger#251 · 2 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
catalyst/moodle-tool_trigger#249 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
catalyst/moodle-tool_trigger#248 ·
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
catalyst/moodle-tool_trigger#243 ·
Tất cả issue của catalyst/moodle-tool_trigger
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
taskforcesh/bullmq#5238 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] v-change-database-password reports success but doesn't change the password when MySQL validate_password rejects itCó thể đã có người làm @bfs2021 đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Automattic/jetpack#55517 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
-
area/import type/enhancement when/later
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày