mirror of
https://github.com/simon987/od-database.git
synced 2025-04-19 18:36:44 +00:00
Change max assign time
This commit is contained in:
parent
bfb59c5336
commit
6843900ec6
1
jenkins/Jenkinsfile
vendored
1
jenkins/Jenkinsfile
vendored
@ -39,6 +39,7 @@ pipeline {
|
|||||||
sshPut remote: remote, from: 'uwsgi.py', into: 'od-database'
|
sshPut remote: remote, from: 'uwsgi.py', into: 'od-database'
|
||||||
sshPut remote: remote, from: 'views.py', into: 'od-database'
|
sshPut remote: remote, from: 'views.py', into: 'od-database'
|
||||||
sshPut remote: remote, from: 'config.py', into: 'od-database'
|
sshPut remote: remote, from: 'config.py', into: 'od-database'
|
||||||
|
sshPut remote: remote, from: 'do_recrawl.py', into: 'od-database'
|
||||||
sshPut remote: remote, from: 'od-database.ini', into: 'od-database'
|
sshPut remote: remote, from: 'od-database.ini', into: 'od-database'
|
||||||
sshPut remote: remote, from: 'jenkins/deploy.sh', into: 'od-database'
|
sshPut remote: remote, from: 'jenkins/deploy.sh', into: 'od-database'
|
||||||
sshCommand remote: remote, command: 'chmod +x od-database/deploy.sh && ./od-database/deploy.sh'
|
sshCommand remote: remote, command: 'chmod +x od-database/deploy.sh && ./od-database/deploy.sh'
|
||||||
|
@ -18,7 +18,7 @@ screen -list
|
|||||||
|
|
||||||
echo "Installing crontab"
|
echo "Installing crontab"
|
||||||
absolute_dir=$(cd ${ODDBROOT} && pwd)
|
absolute_dir=$(cd ${ODDBROOT} && pwd)
|
||||||
command="cd \"${absolute_dir}\" && source env/bin/activate && python do_recrawl.py >> recrawl_logs.txt"
|
command="cd '${absolute_dir}' && source env/bin/activate && python do_recrawl.py >> recrawl_logs.txt"
|
||||||
job="*/10 * * * * \"$command\""
|
job="*/10 * * * * \"$command\""
|
||||||
echo "$job"
|
echo "$job"
|
||||||
cat <(fgrep -i -v \""$command"\" <(crontab -l)) <(echo "$job") | crontab -
|
cat <(fgrep -i -v \""$command"\" <(crontab -l)) <(echo "$job") | crontab -
|
||||||
|
2
tasks.py
2
tasks.py
@ -140,7 +140,7 @@ class TaskManager:
|
|||||||
pool.close()
|
pool.close()
|
||||||
|
|
||||||
def queue_task(self, task: Task):
|
def queue_task(self, task: Task):
|
||||||
max_assign_time = 24 * 7 * 3600
|
max_assign_time = 24 * 4 * 3600
|
||||||
upload_token = uuid4().__str__()
|
upload_token = uuid4().__str__()
|
||||||
|
|
||||||
task.upload_token = upload_token
|
task.upload_token = upload_token
|
||||||
|
Loading…
x
Reference in New Issue
Block a user