Skip to content

Surface lock state in GUI #306

Open
Open

Description

@jakub-berlinski-wttech

Stale locks in JCR repository prevent scripts from running without a good explanation / user feedback.
When a console lock is in place at /var/acm/lock/executor an attempt to run a script ends up with "SKIPPED" message and no information why the script was skipped at all.

Only logs (even at debug level) are not helpful

25.06.2026 13:58:51.002 *DEBUG* [sling-threadpool-9d8a34b6-face-46b9-83d8-6e0d1b07123b-(apache-sling-job-thread-pool)-12-AEM Content Manager Execution Queue(dev/vml/es/acm/ExecutionQueue)] dev.vml.es.acm.core.code.ExecutionQueue Execution started 'QueuedExecution[id=2026/6/25/13/58/d6ed943e-5899-47ee-9963-f3ed5976ec42_11,userId=jakub.berlinski,executable=Code[id=console],status=ACTIVE,duration=0]'

25.06.2026 13:58:51.770 *DEBUG* [sling-threadpool-9d8a34b6-face-46b9-83d8-6e0d1b07123b-(apache-sling-job-thread-pool)-12-AEM Content Manager Execution Queue(dev/vml/es/acm/ExecutionQueue)] dev.vml.es.acm.core.code.ExecutionQueue Execution skipped 'ContextualExecution[id=2026/6/25/13/58/d6ed943e-5899-47ee-9963-f3ed5976ec42_11,userId=jakub.berlinski,executable=Code[id=console],status=SKIPPED,duration=61,error=<null>]'

Please add lock information in GUI (for example in Executor panel) that would list active locks, when they were created and what script are they referencing.

Activity

  1. krystian-panek-vmltech commented on Jun 26, 2026

    @krystian-panek-vmltech
    Collaborator

    also expire lock with configurable duration (e.g 24h by default) would be nice;

    thanks for sharing it, will do within weeks

  2. jakub-przybytek-wttech commented on Jul 14, 2026

    @jakub-przybytek-wttech
    Collaborator

    Consider removing locks on ACM start up... but I am not sure how would it work on multi pod environment.

    Also, giving a little bit of context: in my situation the locks were randomly being persisted because of AEM Author recycle activity that happens daily at various times (we identified two windows so far: 03-04 UTC and 06-08 UTC. Often in those time periods, script execution is being interrupted and the lock stays forever.

  3. krystian-panek-vmltech commented on Jul 14, 2026

    @krystian-panek-vmltech
    Collaborator

    In multi pod env it is pretty hard to differentiate boot vs pod replacement. That's why locks rather cannot be removed during boot. If you could tell me how to detect boot in aemaacs I happy to do it.

    Thanks for the context. I am going to dig more into that direction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions