Flush once per tag

Not sure this is the right thing to do (maybe there is a better way to get an ID?), but it avoids
```
IntegrityError: (psycopg2.IntegrityError) duplicate key value violates unique constraint "tag_name_key"
DETAIL:  Key (name)=(group) already exists.
 [SQL: 'INSERT INTO tag (type, parent_id, name) VALUES (%(type)s, %(parent_id)s, %(name)s) RETURNING tag.id'] [parameters: {'parent_id': None, 'type': 0, 'name': u'group'}]
galaxy.tools.execute WARNING 2018-02-06 15:22:38,808 [p:2122,w:1,m:0] [uWSGIWorker1Core1] There was a failure executing a job for tool [__TAG_FROM_FILE__] - Error executing tool: (psycopg2.IntegrityError) duplicate key value violates unique constraint "tag_name_key"
```
This commit is contained in:
mvdbeek
2018-02-07 10:58:58 +01:00
parent e306a447c0
commit d14bae73f7
3 changed files with 8 additions and 6 deletions
+2 -2
View File
@@ -1,2 +1,2 @@
forward orientation:forward alias:r1
reverse orientation:reverse alias:r2
forward orientation:forward alias:r1 alias:f
reverse orientation:reverse alias:r2 alias:r