Skip to content

Commit

Permalink
Merge pull request #1062 from scitran/jobcomplete-fixup
Browse files Browse the repository at this point in the history
Menagerie of job handler improvements
  • Loading branch information
kofalt authored Feb 23, 2018
2 parents 4666fd1 + adf5b5b commit 58866be
Show file tree
Hide file tree
Showing 9 changed files with 163 additions and 164 deletions.
2 changes: 1 addition & 1 deletion api/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def initialize_db():
create_or_recreate_ttl_index('authtokens', 'timestamp', 2592000)
create_or_recreate_ttl_index('uploads', 'timestamp', 60)
create_or_recreate_ttl_index('downloads', 'timestamp', 60)
create_or_recreate_ttl_index('job_tickets', 'timestamp', 300)
create_or_recreate_ttl_index('job_tickets', 'timestamp', 3600) # IMPORTANT: this controls job orphan logic. Ref queue.py

now = datetime.datetime.utcnow()
db.groups.update_one({'_id': 'unknown'}, {'$setOnInsert': { 'created': now, 'modified': now, 'label': 'Unknown', 'permissions': []}}, upsert=True)
Expand Down
Loading

0 comments on commit 58866be

Please sign in to comment.