Linux / Intermediate: system administration reasoning / Lesson 14
Schedule work with systemd timers
Design an inspectable scheduled job and verify its timing, result, and failure behavior.
On this page
Lesson goals
- Separate the service definition from its timer.
- Inspect actual execution, its result, and failure behavior.
- Correlate timer activation with service invocation and artifact verification in the same window.
- Design explicit policies for missed runs, overlap, failure, and execution environment.
A scheduled job has a contract
A scheduled job needs an owner, a specific command, an expected execution time, and an observable result. Unlike an interactive shell, a scheduled process may start with a different working directory and a limited environment. In a disposable machine, write down the absolute path of a harmless script and the output location before selecting a scheduler. Decide how late execution, overlapping runs, and failures should be handled. Never assume that a message printed to an interactive terminal will be visible to the person responsible for the job.
Separate work from the schedule
A systemd service describes the work; a timer can request activation of that service. Keeping the two units separate makes the command and schedule reviewable. The example is a user service for a disposable lab and assumes the script is already present and executable at the specified path. Replace the example account path for the lab rather than copying it into a real service. Inspect the installed systemd documentation and local unit search paths before installing a unit, because user and system managers have different scopes.
[Unit]
Description=Run a harmless lab report
[Service]
Type=oneshot
ExecStart=/home/lab/bin/report
ExecStart points to the assumed lab script; this illustration does not install or run the unit.
Specify and inspect the schedule
The timer below refers to the service through the shared unit basename and requests a daily calendar schedule. Its activation is a request to the service manager, not evidence that the work completed successfully. Local time and calendar interpretation matter, so inspect the next scheduled occurrence in the actual environment instead of guessing from the expression. If the machine or user manager is unavailable at the scheduled time, evaluate the documented persistence behavior and your own recovery requirement rather than promising that every occurrence will run.
[Unit]
Description=Schedule the lab report
[Timer]
OnCalendar=daily
[Install]
WantedBy=timers.target
The shared basename associates the timer with its service; actual operation requires authorized installation and enablement.
Verify the result and failure path
In the lab, inspect the timer state, service status, and journal for the same execution window. Then check the artifact or other intended result as the job owner. A timer appearing in a list does not prove that the service ran, and a service returning zero does not guarantee the data is correct. Deliberately test a harmless failure, such as a missing lab input, and confirm that the responsible person can discover it. Keep logs free of credentials and unnecessary personal information.
Plan overlap and recovery
Estimate whether the job can finish before its next scheduled activation and define what should happen if a previous run remains active. Protect shared output with an explicit application-level strategy rather than relying on a guess about scheduler behavior. For a production change, document ownership, expected duration, failure notification, and a rollback or disable procedure before scheduling it. Test the script independently first, then test the timer in a disposable environment. Review the behavior after a restart or delayed execution without inventing results.
If the target service is already active when this timer elapses, systemd leaves that service running instead of starting another instance. Other schedulers or work launched outside that unit can still need separate coordination.
Specify work, owner, and observable result
A schedule is only one part of a job contract. Identify the service identity, command and arguments, required input, output location, expected duration, success evidence, and failure owner. A scheduled process does not inherit an interactive terminal’s working directory or shell configuration as an implicit promise. Use explicit paths and document any required environment. A script that works when launched manually may fail as a service if it depended on a different identity, relative path, or interactive variable.
Test the work independently in a disposable environment as the intended identity before adding a timer. Include a valid synthetic input, a missing input, and a path containing spaces where supported. Keep diagnostics separate from credentials, and decide how the responsible person will discover failure. A zero status reports the program’s declared success, but the artifact still needs a content check. The following records describe fictional lab units and do not install or start a service.
Separate service work from timer activation
A service unit defines the work and its execution properties; a timer unit defines when the manager requests activation. A timer normally activates the service with the same unit basename unless configured to target another unit. Check the actual unit association and manager context rather than assuming a package or script name implies it. User and system managers have separate unit scopes and availability conditions. The presence of a unit definition or a listed timer is not evidence that the expected service invocation completed.
A oneshot service can run a bounded task and exit. Its result and journal are evidence for the particular invocation, while the timer’s next occurrence is evidence about scheduling. Inspect both for the same window, then verify the synthetic artifact. A timer can be active while the service failed; a service can also be run separately without its timer. Keep those observations distinct when reporting a scheduled job’s state.
Interpret calendar timing and missed opportunities
Calendar timers use wall-clock expressions, so time zone, clock accuracy, and the manager’s actual next-elapse calculation matter. Inspect the next occurrence in the relevant environment instead of mentally treating “daily” as a fixed interval from the last completion. A monotonic interval and a calendar expression answer different scheduling needs. Timer accuracy and documented randomized delay options can affect the observed firing time; compare the configured policy with the actual execution window and local systemd version.
A machine or user manager may be unavailable at the intended time. Calendar persistence can request a catch-up activation under its documented conditions, but it is not a guarantee that every missed occurrence runs separately or that the work succeeds. Establish the business requirement for missed work and verify the installed implementation in a disposable environment. Record the boot, manager context, last trigger, and result rather than inferring a successful report from a scheduled timestamp.
Correlate trigger, execution, and artifact
A useful investigation follows a single scheduled window from timer trigger to service invocation, exit result, journal diagnostics, and output artifact. A timer appearing in a list proves neither that the intended service was activated nor that it finished correctly. A service returning zero does not prove that the report contains the correct records or belongs to the intended owner. Compare timestamps and unit names so a previous successful artifact is not mistaken for the current run.
Define positive and negative tests. For example, a valid synthetic report input should produce a known record, while a missing input should yield a documented failure that the responsible operator can find. Verify the artifact as the intended reader and retain a minimal sanitized journal excerpt. If the expected log is absent, check boot, time range, permissions, and retention before claiming the job never ran. Never include real credentials in the evidence.
Plan overlap, interruption, and recovery
When the timer elapses while its target service is already active, systemd leaves that service running rather than starting another instance of the same unit. This does not coordinate a separate manually launched process or another unit writing the same file. Define an application-level strategy for shared output, such as a verified lock or independent temporary output, and test it under the intended failure conditions. Do not rely on a guessed scheduler property as the only concurrency control.
Record expected duration, ownership, missed-run policy, failure notification, and an authorized disable or rollback procedure before scheduling. If interruption can leave partial output, describe how a retry detects or replaces it without duplicating work. Preserve the first failure before repeated attempts obscure it. A recovery test should check both scheduler state and application result after restart; a listed next occurrence alone does not demonstrate that missed work was recovered.
20 worked examples
1. Timer listed
Problem: Analyze the synthetic lab record and determine the supported conclusion and next check. Record: timer: listed service invocation: not observed report: absent
- The timer is listed, but the record contains neither an observed invocation nor a report.
- Inspect the matching service result and journal before claiming that scheduled work ran.
timer: listed
service invocation: not observed
report: absent
A fictional scenario record, not executed output. A listed timer does not establish that the service ran or produced the report.
Expected result: A listed timer does not establish that the service ran or produced the report.
Why this result follows: A timer listing describes a schedule, not completion of its target service.
2. Service fails
Problem: Analyze the synthetic lab record and determine the supported conclusion and next check. Record: timer: active service result: exit-code report: absent
- The timer is active, while the service result is exit-code and no report exists.
- Investigate that service invocation and its first diagnostic despite the active timer.
timer: active
service result: exit-code
report: absent
A fictional scenario record, not executed output. The timer is active but the service failed; inspect its invocation and diagnostics.
Expected result: The timer is active but the service failed; inspect its invocation and diagnostics.
Why this result follows: Timer activation and service execution result are independent observations. The timer is active, while the service result is exit-code and no report exists.
3. Zero but wrong data
Problem: Analyze the synthetic lab record and determine the supported conclusion and next check. Record: service status: 0 expected records: 3 report records: 0
- The service returned zero, but the required three-record report contains no records.
- The process reported success while the artifact failed its explicit content check.
service status: 0
expected records: 3
report records: 0
A fictional scenario record, not executed output. The status is successful but the artifact fails its content contract.
Expected result: The status is successful but the artifact fails its content contract.
Why this result follows: An exit status does not independently validate the contents produced by a program.
4. Old artifact
Problem: Analyze the synthetic lab record and determine the supported conclusion and next check. Record: current trigger: 10:00 report modified: yesterday current invocation: unknown
- The current trigger is at 10:00, but the report was last modified yesterday.
- That old artifact cannot demonstrate output from the current invocation; inspect its service result.
current trigger: 10:00
report modified: yesterday
current invocation: unknown
A fictional scenario record, not executed output. An old report cannot demonstrate output from the current trigger.
Expected result: An old report cannot demonstrate output from the current trigger.
Why this result follows: A result must be associated with the same execution window as the trigger.
5. Same basename
Problem: Analyze the synthetic lab record and determine the supported conclusion and next check. Record: timer: report.timer service: report.service explicit Unit=: absent
- The timer and service share basename report, and no explicit Unit target is set.
- Under the stated default association, report.timer targets report.service.
timer: report.timer
service: report.service
explicit Unit=: absent
A fictional scenario record, not executed output. The timer normally targets the matching service basename in this stated context.
Expected result: The timer normally targets the matching service basename in this stated context.
Why this result follows: A timer normally activates the service with its own basename unless configured otherwise.
6. Explicit target
Problem: Analyze the synthetic lab record and determine the supported conclusion and next check. Record: timer: daily.timer Unit=summary.service service: summary.service
- Daily.timer explicitly specifies Unit=summary.service.
- Follow that target when inspecting the service result rather than assuming daily.service.
timer: daily.timer
Unit=summary.service
service: summary.service
A fictional scenario record, not executed output. The explicit Unit setting associates this timer with summary.service rather than daily.service.
Expected result: The explicit Unit setting associates this timer with summary.service rather than daily.service.
Why this result follows: An explicit Unit setting overrides the timer’s default basename association. Daily.timer explicitly specifies Unit=summary.service.
7. User manager
Problem: Analyze the synthetic lab record and determine the supported conclusion and next check. Record: timer: user manager user manager: unavailable at scheduled time
- The timer belongs to a user manager that was unavailable at the scheduled time.
- Check the documented missed-run behavior and any later trigger; completion is not established.
timer: user manager
user manager: unavailable at scheduled time
A fictional scenario record, not executed output. Manager unavailability is a scheduling condition to investigate, not proof of a completed run.
Expected result: Manager unavailability is a scheduling condition to investigate, not proof of a completed run.
Why this result follows: A timer can request activation only in the context and availability of its manager.
8. System manager
Problem: Analyze the synthetic lab record and determine the supported conclusion and next check. Record: timer: system manager unit searched: user manager result: absent
- The timer is in the system manager, but only the user manager was searched.
- Inspect the system-manager context before concluding the timer is absent.
timer: system manager
unit searched: user manager
result: absent
A fictional scenario record, not executed output. A search in the wrong manager does not establish absence from the system manager.
Expected result: A search in the wrong manager does not establish absence from the system manager.
Why this result follows: System and user managers maintain separate unit scopes. The timer is in the system manager, but only the user manager was searched.
9. Relative input
Problem: Analyze the synthetic lab record and determine the supported conclusion and next check. Record: manual working directory: /lab service working directory: different input: ./data
- The script uses ./data, but its service working directory differs from the manual /lab directory.
- Resolve the relative input in the service context and specify the intended path before retesting.
manual working directory: /lab
service working directory: different
input: ./data
A fictional scenario record, not executed output. A relative input can resolve differently; specify and test the intended lab path.
Expected result: A relative input can resolve differently; specify and test the intended lab path.
Why this result follows: Relative path lookup starts from the process’s current working directory. The script uses ./data, but its service working directory differs from the manual /lab directory.
10. Different identity
Problem: Analyze the synthetic lab record and determine the supported conclusion and next check. Record: manual user: owner service user: reporter input permissions: owner only
- The manual owner can read the input, but reporter runs the service and permissions are owner-only.
- Test the read as reporter; the owner’s successful test does not establish reporter access.
manual user: owner
service user: reporter
input permissions: owner only
A fictional scenario record, not executed output. Manual success does not prove the reporter identity can read the input.
Expected result: Manual success does not prove the reporter identity can read the input.
Why this result follows: File authorization uses the acting process credentials. The manual owner can read the input, but reporter runs the service and permissions are owner-only.
11. Missing environment
Problem: Analyze the synthetic lab record and determine the supported conclusion and next check. Record: interactive LAB_MODE: set service environment: LAB_MODE absent script: requires LAB_MODE
- The script requires LAB_MODE, present interactively but absent from the service environment.
- Document and supply the intended synthetic value in service scope, then test the service separately.
interactive LAB_MODE: set
service environment: LAB_MODE absent
script: requires LAB_MODE
A fictional scenario record, not executed output. The service lacks a required input; document and scope the synthetic environment explicitly.
Expected result: The service lacks a required input; document and scope the synthetic environment explicitly.
Why this result follows: A scheduled service does not automatically inherit an interactive shell’s variables. The script requires LAB_MODE, present interactively but absent from the service environment.
12. Daily is calendar
Problem: Analyze the synthetic lab record and determine the supported conclusion and next check. Record: schedule: OnCalendar=daily last completion: 23:50 next calendar boundary: 00:00
- The task finished at 23:50 and the next daily calendar boundary is 00:00.
- The next calendar occurrence can be ten minutes later rather than 24 hours after completion.
schedule: OnCalendar=daily
last completion: 23:50
next calendar boundary: 00:00
A fictional scenario record, not executed output. A daily calendar event is not necessarily 24 hours after the last completion.
Expected result: A daily calendar event is not necessarily 24 hours after the last completion.
Why this result follows: OnCalendar expresses wall-clock scheduling rather than a delay from task completion. The task finished at 23:50 and the next daily calendar boundary is 00:00.
13. Timezone context
Problem: Analyze the synthetic lab record and determine the supported conclusion and next check. Record: expression: daily 08:00 manager timezone: UTC observer assumption: local UTC+2
- The manager uses UTC, while the observer assumes UTC+2 for 08:00.
- Compare the expression and next occurrence in the manager’s actual time context before judging lateness.
expression: daily 08:00
manager timezone: UTC
observer assumption: local UTC+2
A fictional scenario record, not executed output. The observer must compare the actual timezone before judging the next occurrence.
Expected result: The observer must compare the actual timezone before judging the next occurrence.
Why this result follows: Calendar interpretation depends on the configured time basis. The manager uses UTC, while the observer assumes UTC+2 for 08:00.
14. Missed event
Problem: Analyze the synthetic lab record and determine the supported conclusion and next check. Record: machine: off at scheduled time persistence behavior: not checked
- The machine was off at the scheduled time, and persistence behavior was not inspected.
- Check persistence configuration and a post-start trigger before claiming the work was caught up.
machine: off at scheduled time
persistence behavior: not checked
A fictional scenario record, not executed output. A missed scheduled time alone does not establish whether a catch-up activation occurred.
Expected result: A missed scheduled time alone does not establish whether a catch-up activation occurred.
Why this result follows: A missed calendar time alone does not establish a later activation or successful work.
15. Timer while service active
Problem: Analyze the synthetic lab record and determine the supported conclusion and next check. Record: timer elapsed: yes target service: already active
- The timer elapses while its target service is already active.
- Systemd leaves that service running rather than starting another instance of the same unit.
timer elapsed: yes
target service: already active
A fictional scenario record, not executed output. The manager leaves the active target service running rather than starting a second instance of that unit.
Expected result: The manager leaves the active target service running rather than starting a second instance of that unit.
Why this result follows: Timer activation does not spawn a concurrent second instance of an already active target unit.
16. Separate writer
Problem: Analyze the synthetic lab record and determine the supported conclusion and next check. Record: target unit: active manual process: writes same output
- The target unit and a separately launched manual process both write the same output.
- The unit’s active-state behavior does not coordinate the manual writer; define shared-output protection.
target unit: active
manual process: writes same output
A fictional scenario record, not executed output. Same-unit behavior does not coordinate a separately launched writer of the shared output.
Expected result: Same-unit behavior does not coordinate a separately launched writer of the shared output.
Why this result follows: Separate processes outside the same unit require their own concurrency policy. The target unit and a separately launched manual process both write the same output.
17. Missing synthetic input
Problem: Analyze the synthetic lab record and determine the supported conclusion and next check. Record: test input: absent service status: nonzero diagnostic: recorded
- The synthetic input is absent, the service exits nonzero, and a diagnostic is recorded.
- The negative test shows a reported failure; verify that the designated owner can discover it.
test input: absent
service status: nonzero
diagnostic: recorded
A fictional scenario record, not executed output. The negative test demonstrates a reported failure; verify the responsible person can discover it.
Expected result: The negative test demonstrates a reported failure; verify the responsible person can discover it.
Why this result follows: A failure test must exercise both error reporting and its operational visibility.
18. Wrong boot evidence
Problem: Analyze the synthetic lab record and determine the supported conclusion and next check. Record: trigger boot: B journal query boot: C matching entries: none
- The timer triggered in boot B, but an empty journal query examined boot C.
- Query the retained B window if authorized; the C result cannot establish absence in B.
trigger boot: B
journal query boot: C
matching entries: none
A fictional scenario record, not executed output. A query in another boot cannot establish that the invocation in B had no log.
Expected result: A query in another boot cannot establish that the invocation in B had no log.
Why this result follows: Journal boot filtering scopes evidence to the selected boot. The timer triggered in boot B, but an empty journal query examined boot C.
19. Interrupted output
Problem: Analyze the synthetic lab record and determine the supported conclusion and next check. Record: job: interrupted output: partial retry policy: undefined
- The job was interrupted after partial output and no retry policy is defined.
- Specify whether retry replaces or safely resumes that output and test for duplicate records.
job: interrupted
output: partial
retry policy: undefined
A fictional scenario record, not executed output. A retry needs a defined partial-output policy to avoid corrupting or duplicating work.
Expected result: A retry needs a defined partial-output policy to avoid corrupting or duplicating work.
Why this result follows: A retry after partial side effects can repeat or corrupt durable work without a contract.
20. Owner verification
Problem: Analyze the synthetic lab record and determine the supported conclusion and next check. Record: service status: success report owner access: denied
- The service reports success, but the intended report owner is denied access.
- Treat execution and artifact access as separate outcomes and inspect the exact path as that reader.
service status: success
report owner access: denied
A fictional scenario record, not executed output. Success status does not establish that the intended reader can use the artifact.
Expected result: Success status does not establish that the intended reader can use the artifact.
Why this result follows: A successful process status does not guarantee authorization for another identity. The service reports success, but the intended report owner is denied access.
Common errors and fixes
The job works manually but fails when scheduled
- Why it happens
- The script depended on an interactive working directory or environment.
- How to fix it
- Specify the necessary paths and environment and test as the service identity in the lab.
- Prevent it next time
- Document job inputs and environment explicitly.
The timer is listed but the report is missing
- Why it happens
- A listed timer does not prove service success or correct output.
- How to fix it
- Inspect service status, the execution journal, and the intended result for the same window.
- Prevent it next time
- Monitor the work result as well as the activation schedule.
A shared output conflicts
- Why it happens
- Long-running or overlapping work had no defined handling.
- How to fix it
- Stop the lab test and choose a safe application-level strategy.
- Prevent it next time
- Test job duration and overlap policy before scheduling.
20 practice exercises
1. Why does a listed timer not prove that the report succeeded?
Show hint
Separate activation from the service result and report validity.
Show worked solution
The timer requests activation. Inspect the service state and journal, then verify the report as its owner in the same execution window.
The timer requests activation but does not prove work succeeded. Inspect the service state and invocation journal in the same window, then verify the report as its owner against expected contents.
Check your solution
- Check service result and journal for the execution window.
- Verify the current report as its owner.
2. A job depends on a file in the current directory. How can you make its test clearer?
Show hint
Specify the input path, identity, and environment before scheduling.
Show worked solution
Use an explicit lab input path, document the execution identity and environment, and test the service independently before testing the timer.
Use an explicit lab path or documented working directory and specify service identity and environment. Test the service independently with synthetic input before testing the timer association.
Check your solution
- Specify the input path and service identity.
- Test the service independently, then the timer.
3. A timer appears in a list, but today’s report is missing. Which evidence distinguishes scheduling from work failure?
Show hint
Identify the timer, service, time window, and required artifact in this scenario.
Show worked solution
Inspect the timer trigger, matching service invocation and journal in the same window, then verify the report artifact as its intended reader. A listed timer alone does not establish execution or correct output.
Check your solution
- Check the trigger and service result for the same window.
- Verify the current report content and reader access.
4. A scheduled script reads `./input`, but a manual test ran from `/lab`. How should its contract be clarified?
Show hint
Identify the timer, service, time window, and required artifact in this scenario.
Show worked solution
Use an explicit synthetic input path or a documented working directory, and test as the service identity with the intended environment. A relative path depends on the process’s actual working directory.
Check your solution
- Specify the intended input path or working directory.
- Test the read as the service identity.
5. A service exits zero but writes an empty report where two records are required. What should be reported?
Show hint
Identify the timer, service, time window, and required artifact in this scenario.
Show worked solution
Report successful process status and failed artifact validation separately. Compare the current report with the two-record contract and inspect the matching invocation before claiming the scheduled work succeeded. Correlate this result with the execution window and service identity before treating it as evidence of successful work.
Check your solution
- Record the service exit status as zero.
- Reject the report because it lacks two records.
6. A timer targets `summary.service` explicitly despite being named `daily.timer`. Which unit should be investigated?
Show hint
Identify the timer, service, time window, and required artifact in this scenario.
Show worked solution
Inspect summary.service and the timer’s explicit association in the same manager. The shared-basename default is not the target when an explicit Unit setting selects another service. Correlate this result with the execution window and service identity before treating it as evidence of successful work.
Check your solution
- Identify summary.service as the target.
- Check the timer and service in the same manager.
7. A user timer is absent from the system manager’s list. What context should be checked before declaring it missing?
Show hint
Identify the timer, service, time window, and required artifact in this scenario.
Show worked solution
Inspect the affected account’s user manager and its timer list, because system and user managers have separate scopes. Also check whether that manager was available at the expected time. Correlate this result with the execution window and service identity before treating it as evidence of successful work.
Check your solution
- Inspect the affected user manager.
- Check manager availability at the scheduled time.
8. A job works as the owner but fails as `reporter`; the input is owner-readable only. What test is appropriate?
Show hint
Identify the timer, service, time window, and required artifact in this scenario.
Show worked solution
In a disposable lab, inspect the actual service identity and attempt the same authorized read as reporter. Compare the input path and effective access before proposing a narrow policy change.
Check your solution
- Confirm the service runs as reporter.
- Test reporter’s read of the exact input.
9. A script requires `LAB_MODE`, which exists only in an interactive session. How should scheduled behavior be tested?
Show hint
Identify the timer, service, time window, and required artifact in this scenario.
Show worked solution
Document the required synthetic value and supply it in the intended service scope, then test the service independently with that environment. Avoid assuming interactive shell initialization provides it. Correlate this result with the execution window and service identity before treating it as evidence of successful work.
Check your solution
- Declare the required LAB_MODE value.
- Verify the service receives it independently of the timer.
10. A daily calendar job finished at 23:50. Why is the next occurrence not necessarily 24 hours later?
Show hint
Identify the timer, service, time window, and required artifact in this scenario.
Show worked solution
A calendar expression follows wall-clock boundaries rather than a fixed delay from completion. Inspect the actual next occurrence and timezone for the installed manager before predicting execution time. Correlate this result with the execution window and service identity before treating it as evidence of successful work.
Check your solution
- Distinguish a calendar boundary from a completion-relative interval.
- Inspect the manager’s next occurrence and timezone.
11. A calendar event was due while a lab machine was off. What evidence is needed to assess catch-up?
Show hint
Identify the timer, service, time window, and required artifact in this scenario.
Show worked solution
Inspect the timer’s persistence configuration and documented version behavior, then correlate its last trigger with the service result after startup. Do not infer that every missed event ran separately. Correlate this result with the execution window and service identity before treating it as evidence of successful work.
Check your solution
- Inspect persistence configuration and installed documentation.
- Correlate the post-start trigger with the service result.
12. A timer elapses while its target service is already active. What does systemd do for that same unit?
Show hint
Identify the timer, service, time window, and required artifact in this scenario.
Show worked solution
The manager leaves the active target service running instead of starting a second instance of that unit. Separately launched writers are not coordinated by that fact and need their own policy.
Check your solution
- State that another instance of the same active unit is not started.
- Identify separate writers as an additional coordination concern.
13. A manual process and a timer service both write the same synthetic report. What must be designed?
Show hint
Identify the timer, service, time window, and required artifact in this scenario.
Show worked solution
Define and test application-level coordination such as a suitable lock or independent temporary outputs. Same-unit timer behavior does not prevent a separate process from writing concurrently. Correlate this result with the execution window and service identity before treating it as evidence of successful work.
Check your solution
- Identify both independent writers.
- Specify and test a shared-output coordination strategy.
14. A timer fired at 09:00, but the available report was last modified yesterday. What is missing?
Show hint
Identify the timer, service, time window, and required artifact in this scenario.
Show worked solution
The old artifact does not show the current invocation produced a report. Inspect the 09:00 service result and journal, then verify a current artifact and its expected contents. Correlate this result with the execution window and service identity before treating it as evidence of successful work.
Check your solution
- Compare artifact timestamp with the 09:00 trigger.
- Inspect the matching invocation and current report content.
15. A harmless missing input makes a lab service fail. What should the negative test demonstrate?
Show hint
Identify the timer, service, time window, and required artifact in this scenario.
Show worked solution
Verify a documented nonzero result and useful diagnostic for that invocation, and confirm the responsible person can discover the failure. Ensure no incomplete report is mistaken for a valid artifact.
Check your solution
- Check the nonzero status and diagnostic.
- Confirm failure visibility and treatment of partial output.
16. A query finds no journal entries for the job, but was run against another boot. What should be checked?
Show hint
Identify the timer, service, time window, and required artifact in this scenario.
Show worked solution
Identify the boot and time of the timer trigger, then inspect the matching retained journal with appropriate authorization. An empty query against another boot cannot prove the job produced no log.
Check your solution
- Match the query boot to the trigger boot.
- Check the time range and any journal access error.
17. A service was interrupted after writing half a report. What should its retry policy specify?
Show hint
Identify the timer, service, time window, and required artifact in this scenario.
Show worked solution
Specify how partial output is detected and replaced or safely resumed, and whether repeating the work can duplicate records. Test that policy using synthetic output before scheduling retries. Correlate this result with the execution window and service identity before treating it as evidence of successful work.
Check your solution
- Define handling for the partial artifact.
- Test that a retry does not duplicate records.
18. A job completes successfully but its intended reader cannot access the report. Which check failed?
Show hint
Identify the timer, service, time window, and required artifact in this scenario.
Show worked solution
The process result succeeded, but the artifact access requirement failed. Inspect owner, path traversal, and permissions as the intended reader in the lab before proposing a limited correction. Correlate this result with the execution window and service identity before treating it as evidence of successful work.
Check your solution
- Record the successful service result separately.
- Verify the intended reader can traverse and read the report.
19. A schedule has random delay configured. Why compare the configured policy before calling a late start a failure?
Show hint
Identify the timer, service, time window, and required artifact in this scenario.
Show worked solution
The actual execution window may intentionally differ from the nominal calendar time. Inspect the installed version’s delay and accuracy settings, then compare the trigger and result with the defined tolerance.
Check your solution
- Inspect delay and accuracy settings.
- Compare actual trigger time with the agreed tolerance.
20. Before scheduling a report, list two operational details needed for a controlled failure response.
Show hint
Identify the timer, service, time window, and required artifact in this scenario.
Show worked solution
Name the responsible owner and a discoverable failure notification, and document how to disable or roll back the job under authorization. Test a harmless missing-input failure in a disposable environment.
Check your solution
- Identify the responsible owner and failure notification.
- Document and test an authorized disable or rollback procedure.
Key takeaways
- Separate the activation schedule from the work definition.
- Verify the result, failure path, and ownership.
- A timer requests work and does not establish artifact correctness.
- Inspect identity, environment, time, and manager context.
- Shared output and retry behavior need explicit coordination.