aptly db locks and error message #114

Closed
serjs opened this Issue Sep 29, 2014 · 4 comments

Comments

Projects
None yet
2 participants
@serjs

serjs commented Sep 29, 2014

Hi!

I have small request feature. As i noticed while using operations like aptly mirror update that handles operations for hours possibly locks db. So any requested arguments for aptly mirror at this time show error:

ERROR: can't open database: resource temporarily unavailable

Can we handle this situations and show some output e.g. "mirror operations currently locked" rather than show error message from db?

@smira smira added the enhancement label Sep 30, 2014

@smira smira added this to the v0.8 milestone Sep 30, 2014

@smira

This comment has been minimized.

Show comment
Hide comment
@smira

smira Sep 30, 2014

Member

Related to #45: I though it would be better if database won't be locked during mirror update phase at all, so that you would be able to run other commands.

Member

smira commented Sep 30, 2014

Related to #45: I though it would be better if database won't be locked during mirror update phase at all, so that you would be able to run other commands.

@serjs

This comment has been minimized.

Show comment
Hide comment
@serjs

serjs Sep 30, 2014

It's possible to see current status when mirror is updated or not at this time if there are some plans to prevent locking? Something like Status: In Process, Status: Completed or anything else which we can see from show argument for example.

I need this, because we try to use aptly with Chef, and we decide to update some mirrors from cron rather than from chef-client run. Currently i can catch errors while db locked to skip depended operations, but for future i want to skip any operations with mirror when it's in update status.

serjs commented Sep 30, 2014

It's possible to see current status when mirror is updated or not at this time if there are some plans to prevent locking? Something like Status: In Process, Status: Completed or anything else which we can see from show argument for example.

I need this, because we try to use aptly with Chef, and we decide to update some mirrors from cron rather than from chef-client run. Currently i can catch errors while db locked to skip depended operations, but for future i want to skip any operations with mirror when it's in update status.

@smira

This comment has been minimized.

Show comment
Hide comment
@smira

smira Sep 30, 2014

Member

@serjs great idea about mirror status. I like it!

Member

smira commented Sep 30, 2014

@serjs great idea about mirror status. I like it!

@smira

This comment has been minimized.

Show comment
Hide comment
@smira

smira Oct 3, 2014

Member

Done in master: concurrent operations while package files are downloaded.

Member

smira commented Oct 3, 2014

Done in master: concurrent operations while package files are downloaded.

@smira smira closed this Oct 3, 2014

@freehck freehck referenced this issue Oct 6, 2014

Closed

Locked database #117

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment