Fix shared scheduler workers and verify full TA browser workflow
myfileagent-python-ci/pipeline/head This commit looks good
myfileagent-python-ci/pipeline/head This commit looks good
This commit is contained in:
@@ -163,7 +163,7 @@ session cookies; security checks were not disabled.
|
||||
\toprule Service & RAM cap & CPU cap & Additional setting\\\midrule\endhead
|
||||
Elasticsearch & 384 MiB & 0.35 & Heap 128 MiB initial/max\\
|
||||
Rails & 384 MiB & 0.40 & Single Puma process; 1--3 threads\\
|
||||
Scheduler & 384 MiB & 0.25 & Worker counts reduced to one\\
|
||||
Scheduler & 384 MiB & 0.25 & Required services use shared-process threads; unused AI/incoming-mail workers disabled\\
|
||||
Websocket & 192 MiB & 0.15 & Official command retained\\
|
||||
Backup & 192 MiB & 0.15 & Startup backup enabled\\
|
||||
PostgreSQL & 128 MiB & 0.25 & Existing initialized volume\\
|
||||
@@ -183,6 +183,25 @@ If a required service fails, preserve logs and raise only the demonstrated
|
||||
limiting setting. Do not silence failures or remove the required search or
|
||||
backup services to claim success.
|
||||
|
||||
\paragraph{November 20 browser-test correction.}
|
||||
Although the container remained running, a later actual browser ticket-create
|
||||
test could not find the existing synthetic Customer. The user search index
|
||||
contained only one record. Scheduler process inspection showed that the
|
||||
general delayed-job and scheduled-job workers were absent; its cgroup counters
|
||||
recorded three killed processes under the original 384 MiB ceiling.
|
||||
An initial 512 MiB scheduler trial still lost the delayed-job worker and
|
||||
recorded one killed process. Inspection of the matching upstream
|
||||
\path{lib/background_services/service_config.rb} established that a worker
|
||||
count of zero selects shared-process threading, whereas one forks a separate
|
||||
Rails process. The earlier attempt to minimize workers by setting each to one
|
||||
was therefore counterproductive. Required session-management, scheduled-job
|
||||
and delayed-job services were corrected to zero-worker threaded mode, the
|
||||
scheduler ceiling was restored to 384 MiB, and unused AI/incoming-mail workers
|
||||
were disabled. The Elasticsearch heap remained 128 MiB.
|
||||
This records a functional failure that API CRUD and container-running checks
|
||||
had not detected; the completed browser test is the acceptance check for the
|
||||
correction, not merely a successful container restart.
|
||||
|
||||
\section{4. Validation, initialization and startup operations}
|
||||
Run commands in the deployment directory so the same private environment and
|
||||
all scenarios are loaded:
|
||||
@@ -535,6 +554,38 @@ protection against loss of the Droplet or its disk. Off-Droplet replication is
|
||||
not claimed.
|
||||
\end{enumerate}
|
||||
|
||||
\subsection{November 20 browser acceptance and indexing repair}
|
||||
Customer autocomplete initially failed because the derived User search index
|
||||
contained only one record. The official model methods
|
||||
\texttt{User.search\_index\_reload(worker: 0)} and
|
||||
\texttt{Ticket.search\_index\_reload(worker: 0)}, followed by
|
||||
\texttt{SearchIndexBackend.refresh}, completed successfully using the existing
|
||||
image and scheduler limits. The scheduler was paused during this one-time
|
||||
operation and restarted afterward. Database records and volumes were retained.
|
||||
The User index then contained six records and Customer autocomplete found
|
||||
the existing Demo Customer. The saved JSON records the operation and exit status.
|
||||
|
||||
Logged in as \texttt{ta.agent}, the browser created ticket 71007, selected
|
||||
Demo Customer, assigned TA Agent, retained normal priority, submitted an
|
||||
internal note and then submitted a customer-visible resolution reply with
|
||||
state closed. A separate Demo Customer login displayed the public reply and
|
||||
closed state, with internal article 13 absent. This supplements, rather than
|
||||
relabels, the earlier API-only CRUD test on ticket 71006. No SMTP delivery
|
||||
was attempted. The earlier open, assigned and closed example tickets remain.
|
||||
|
||||
\begin{figure}[htbp]
|
||||
\centering\includegraphics[width=\textwidth]{hw9_images/ta-browser-closed-reply.png}
|
||||
\caption{TA Agent browser workflow: saved internal note, public resolution,
|
||||
assigned owner, normal priority and closed state on ticket 71007.}
|
||||
\label{fig:taBrowserClosedReply}
|
||||
\end{figure}
|
||||
\begin{figure}[htbp]
|
||||
\centering\includegraphics[width=\textwidth]{hw9_images/customer-browser-closed-reply.png}
|
||||
\caption{Demo Customer sees ticket 71007's public resolution and closed
|
||||
state; the internal TA note is excluded from the conversation.}
|
||||
\label{fig:customerBrowserClosedReply}
|
||||
\end{figure}
|
||||
|
||||
\section{11. Deliverable coverage, final rechecks and remaining gaps}
|
||||
\begin{longtable}{L{3.2cm}L{6.2cm}L{3.4cm}}
|
||||
\caption{Required Chapter 7 deliverable audit}\label{Table:ZammadCoverage}\\
|
||||
@@ -543,7 +594,7 @@ Deployment / continuity & Revision, images, manifest, architecture, final HTTPS
|
||||
Capacity and versions & Initial observations, user-confirmed Basic 1 vCPU/2 GB/50 GB at \$12/month, explicit limits & Full pre-install command baseline cannot be reconstructed\\
|
||||
Persistence / backups & Named volume manifest, backup success, retained ticket/conversation & Database restore not tested\\
|
||||
HTTPS / exposure & Certificate, redirect, blocked ports, private networks, current cloud rules/attachment, no global IPv6/AAAA & Privileged host-rule audit pending\\
|
||||
Accounts / TA & Agent-only TA/group access, API CRUD 71006, authenticated screenshots & Browser login/read verified; API CRUD distinguished\\
|
||||
Accounts / TA & Agent-only TA/group access, API CRUD 71006, browser workflow 71007 & Browser create, assign, internal/public reply and close verified\\
|
||||
Three ticket examples & Open 71002, assigned 71003, closed 71004; internal note/public reply & Browser visibility/isolation screenshots included\\
|
||||
Engineering link & Issue 22 and ticket 71004 bidirectional link, resolution note, screenshot & Issue remains open\\
|
||||
Monitoring & Existing job, three displayed panels, successful probe and host comparison & Authenticated Grafana screenshots included\\
|
||||
@@ -552,9 +603,9 @@ Manual / source & This chapter, Hosts, password hints, history, AI log, sanitize
|
||||
\end{longtable}
|
||||
|
||||
Every pending item is a required evidence follow-up, not an optional extra or
|
||||
an assertion of completion. Before submission: finish the click-by-click TA
|
||||
browser create/assign/reply/close demonstration and web-portal note/reply
|
||||
submission evidence (API actions and portal visibility are already verified);
|
||||
an assertion of completion. Before submission: review the saved TA
|
||||
browser evidence for ticket 71007 (create, assign, internal/public
|
||||
reply and close are now exercised through the portal);
|
||||
finish privileged host-rule and effective key-only SSH evidence; current cloud
|
||||
rules and attachment screenshots are now included;
|
||||
review the password handoff and updated Hosts chapter together with the team
|
||||
|
||||
Reference in New Issue
Block a user