ahallock/node-ironio

"list" method to task.js

mfyz opened this issue · 1 comments

mfyz commented

I needed to receive task list by worker codename for iron worker and I extended task.js

function list(codename, fn) {
    var listPath = taskPath + '?code_name=' + codename;
    api.get(listPath, fn);
}

This does the work.

Hi, currently, you can do:

tasks.list({codename: "mycodename"}, function() {});

We may want something that simply takes the codename parameter though.