Fix handling of task arguments

This commit is contained in:
Ray Miller 2025-07-06 14:06:06 +01:00
parent 78beb037e7
commit 9068953967
Signed by: ray
GPG key ID: 043F786C4CD681B8

View file

@ -68,7 +68,7 @@ this program. If not, see <https://www.gnu.org/licenses/>.
(define-method (execute% (task <task>) (conn <connection>))
(log-msg 'DEBUG "execute task " (task-name task) " on connection")
(if ((task-pre-condition task) conn)
(let ((result ((task-action task) conn)))
(let ((result (apply (task-action task) conn (map (lambda (a) (if (promise? a) (force a) a)) (task-args task)))))
(cond
((equal? result #f)
(log-msg 'NOTICE (task-name task) " - OK"))