Worker Daemon
Introduction
The different steps from the https://mediahaven.atlassian.net/wiki/spaces/CS/pages/3520724993 are performed as a series of worker daemon jobs which this screen in the Monitoring reports.
Statuses
The worker daemon jobs can have the following statuses
Status | Meaning | Color | Since |
---|---|---|---|
| Job has yet to be picked up | WHITE |
|
| A worker daemon is currently processing the job | BLUE |
|
| When asynchronous jobs are picked up, their job ID is passed into the newly created linked concept (i.e. batch) and the job gets this status until the linked concept completes and the job acquires its final status | BLUE |
|
| The job was completed and executed as expected | GREEN |
|
| The job was completed but the execution followed not the standard flow. For example, the job | ORANGE |
|
|
| RED |
|
Priority
Worker daemon jobs have a priority which is calculated according to the rule described in Worker daemon fairness
Jobs with a higher value of priority are executed first, this is the opposite of priority Transcoding Monitoring where jobs with a lower value of priority are executed first
Monitoring Screens
Screen | Description |
---|---|
Queues | Overview of recent jobs |
Jobs |
|
Failed | Same as jobs but restricted to status |
Statistics |
|
Server Logs / Logging | Linking to the logging of all worker daemons |
Cleanup
Worker daemon jobs are automatically cleaned up in the following scenarios:
Permanent deletion of a record: when a record is permanently deleted, the associated worker daemon jobs and workflows are automatically cleaned up
Stopping a workflow: when a workflow is stopped, any ongoing worker daemon jobs related to that workflow are automatically cleaned up
Once per day
Remove all jobs that were completed or rejected more than 1 month ago
Remove all jobs that were waiting more than 2 weeks