what is teh DELETED state?

Asked by Alex Nekrasov

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:
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

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

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) said :
#2

re-opening

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) said :
#3

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

Revision history for this message
Alex Nekrasov (ennnot) said :
#4

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

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) said :
#5

Exactly

Revision history for this message
Alex Nekrasov (ennnot) said :
#6

thanks