Fix handling of task arguments
This commit is contained in:
parent
78beb037e7
commit
9068953967
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
(define-method (execute% (task <task>) (conn <connection>))
|
(define-method (execute% (task <task>) (conn <connection>))
|
||||||
(log-msg 'DEBUG "execute task " (task-name task) " on connection")
|
(log-msg 'DEBUG "execute task " (task-name task) " on connection")
|
||||||
(if ((task-pre-condition task) conn)
|
(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
|
(cond
|
||||||
((equal? result #f)
|
((equal? result #f)
|
||||||
(log-msg 'NOTICE (task-name task) " - OK"))
|
(log-msg 'NOTICE (task-name task) " - OK"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue