···3030 did text primary key
3131 );
32323333- create table if not exists pipelines (
3434- at_uri text not null,
3333+ create table if not exists pipeline_status (
3434+ rkey text not null,
3535+ pipeline text not null,
3536 status text not null,
36373738 -- only set if status is 'failed'
···4243 updated_at timestamp not null default (strftime('%Y-%m-%dT%H:%M:%SZ', 'now')),
4344 finished_at timestamp,
44454545- primary key (at_uri)
4646+ primary key (rkey)
4647 );
4748 `)
4849 if err != nil {
···47474848// SetupPipeline sets up a new network for the pipeline, and possibly volumes etc.
4949// in the future. In here also goes other setup steps.
5050-func (e *Engine) SetupPipeline(ctx context.Context, pipeline *tangled.Pipeline, id string) error {
5050+func (e *Engine) SetupPipeline(ctx context.Context, pipeline *tangled.Pipeline, atUri, id string) error {
5151 e.l.Info("setting up pipeline", "pipeline", id)
52525353 _, err := e.docker.VolumeCreate(ctx, volume.CreateOptions{
···7373 return err
7474 }
75757676- err = e.db.CreatePipeline(id, e.n)
7676+ err = e.db.CreatePipeline(id, atUri, e.n)
7777 return err
7878}
7979