d4e5d249e8f1650aeb5ac8775552526c4d2cc033,polyaxon/scheduler/tasks/jobs.py,,jobs_schedule_deletion,#Any#Any#,74
Before Change
job.archive()
if not job.is_running:
return
project = job.project
celery_app.send_task(
SchedulerCeleryTasks.JOBS_STOP,
kwargs={
"project_name": project.unique_name,
"project_uuid": project.uuid.hex,
"job_name": job.unique_name,
"job_uuid": job.uuid.hex,
"update_status": True,
"collect_logs": False,
"message": "Job is scheduled for deletion."
})
if immediate:
celery_app.send_task(
SchedulerCeleryTasks.DELETE_ARCHIVED_JOB,
After Change
job.archive()
if job.is_running:
project = job.project
celery_app.send_task(
SchedulerCeleryTasks.JOBS_STOP,
kwargs={
"project_name": project.unique_name,
"project_uuid": project.uuid.hex,
"job_name": job.unique_name,
"job_uuid": job.uuid.hex,
"update_status": True,
"collect_logs": False,
"message": "Job is scheduled for deletion."
})
if immediate:
celery_app.send_task(
SchedulerCeleryTasks.DELETE_ARCHIVED_JOB,
kwargs={
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 10
Instances
Project Name: polyaxon/polyaxon
Commit Name: d4e5d249e8f1650aeb5ac8775552526c4d2cc033
Time: 2019-02-11
Author: mouradmourafiq@gmail.com
File Name: polyaxon/scheduler/tasks/jobs.py
Class Name:
Method Name: jobs_schedule_deletion
Project Name: polyaxon/polyaxon
Commit Name: d4e5d249e8f1650aeb5ac8775552526c4d2cc033
Time: 2019-02-11
Author: mouradmourafiq@gmail.com
File Name: polyaxon/scheduler/tasks/notebooks.py
Class Name:
Method Name: projects_notebook_schedule_deletion
Project Name: polyaxon/polyaxon
Commit Name: d4e5d249e8f1650aeb5ac8775552526c4d2cc033
Time: 2019-02-11
Author: mouradmourafiq@gmail.com
File Name: polyaxon/scheduler/tasks/build_jobs.py
Class Name:
Method Name: build_jobs_schedule_deletion
Project Name: polyaxon/polyaxon
Commit Name: d4e5d249e8f1650aeb5ac8775552526c4d2cc033
Time: 2019-02-11
Author: mouradmourafiq@gmail.com
File Name: polyaxon/scheduler/tasks/experiments.py
Class Name:
Method Name: experiments_schedule_deletion
Project Name: polyaxon/polyaxon
Commit Name: d4e5d249e8f1650aeb5ac8775552526c4d2cc033
Time: 2019-02-11
Author: mouradmourafiq@gmail.com
File Name: polyaxon/scheduler/tasks/tensorboards.py
Class Name:
Method Name: tensorboards_schedule_deletion