moodle-tool_trigger icon indicating copy to clipboard operation
moodle-tool_trigger copied to clipboard

Enhancement: adjustable parameters for maximum tries and maximum processing time

Open gshee22 opened this issue 3 years ago • 2 comments

Excellent plugin. One suggestion for enhancement would be to allow adjustment of two parameters which are currently set as constants in the code: maximum number of tries before ignoring a task (MAXTRIES) and maximum processing time for a queue in seconds (MAXTIME). Particularly when integrating HTTP requests into a workflow, it might be useful to add more persistence (e.g., a greater number of tries for each task in the event that some unexpected downtime occurs at an API endpoint) and more control over throughput (e.g., increasing the processing time if a Moodle instance has a continuously high volume of workflow triggers).

gshee22 avatar Nov 12 '21 19:11 gshee22

This has been done.

dmitriim avatar Mar 06 '22 23:03 dmitriim

Ah actually MAXTIME is still hardocded. Reopening

dmitriim avatar Mar 06 '22 23:03 dmitriim