what is teh DELETED state?

Asked by Alex Nekrasov on 2009-05-29

job_next_state() defines that the next state for a job in JOB_WAITING is JOB_DELETED. What is the intended use case for JOB_DELETED?

Question information

Language:
English Edit question
Status:
Solved
For:
upstart Edit question
Assignee:
No assignee Edit question
Solved by:
Alex Nekrasov
Solved:
2009-06-15
Last query:
2009-06-15
Last reply:
2009-06-15
Launchpad Janitor (janitor) said : #1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Unsurprisingly, this state is used when a job configuration is deleted - ie. from the disk.

It means that when the job is stopped, it transitions beyond the waiting state into a deleted state - at which point it can be garbage collected

Alex Nekrasov (ennnot) said : #4

how do I do that from the external interface? Delete the job file, then stop it?

Alex Nekrasov (ennnot) said : #6

thanks