[Swift-devel] Problems with coasters and managedfork jobmanager

Mihael Hategan hategan at mcs.anl.gov
Wed Feb 11 00:15:02 CST 2009


On Tue, 2009-02-10 at 23:43 -0600, Mihael Hategan wrote:

> I haven't tried it from inside swift. I'll poke around and send a
> command that can be used literally.

Grr.

Put the following in a file named t.k:

import("sys.k")
import("task.k")

[bs,url,provider,jm] := each(...)

h := host(url
        service("execution", provider=provider,
                url=url,jobManager=jm)
)

src := strip(file:read(bs))

execute("/usr/bin/perl",
        args=["-e", "{src}"],
        host=h, provider=provider,
        redirect=true)


Then (with your swift bin dir in your path) run it like this:

cog-workflow t.k <the-bootstrap.pl-file-name> <url> <provider>
<jobmanager>

For example:
cog-workflow t.k coaster-bootstrap.jar.pl localhost local none

You should get:
Submitting task Task(type=JOB_SUBMISSION, identity=urn:0-1234332844313)
Wrong number of arguments. Expected <serviceURL>, <package list
checksum>, <registration service URL>, and <id>

Execution failed:
Job failed with an exit code of 1
...




More information about the Swift-devel mailing list