Background jobs

From IngvarConsulting/unica · View interactive version

Background jobs is an AI agent skill from the GitHub repository IngvarConsulting/unica. Фоновые и регламентные задания 1С. Используй когда нужно спроектировать, проверить или диагностировать background jobs, расписания, очереди, зависания, retry-логику и журналирование.

How to use this skill

Skill file

Background Jobs

MCP routing

контракт каждой — argsSchema, execution, previewRequired,

dryRunRequired. Контракт вызова бери оттуда, а не из этого текста;

используй опубликованную argsSchema; при support.state: limited

разрешено только подмножество support.supportedArgs. Недоступной операции

в словаре нет. Для плановой операции сначала проверь результат

dryRun: true, затем исполняй запрос с dryRun: false. Preview

не фиксирует входы между вызовами. Не обходи контракт прямым runner-ом.

References

Workflow

  1. Identify job type: scheduled job, background job launched from code, queue worker, exchange worker, or deferred integration retry.
  2. Find entry points with unica.search; inspect related metadata with unica.view on the object node and project layout with unica.view {}.
  3. Define execution contract: parameters, user context, transaction scope, idempotency key, lock strategy, timeout, retry count, and logging fields.
  4. Check failure behavior before implementation: duplicate launch, partial write, stale lock, external service failure, session termination, and restart after crash.
  5. Run unica.check on the module node; launch a client through unica.run (launch) when the diagnosis needs one, and record runtime verification as unavailable unless separate evidence is supplied: test runs are outside the v0.13 surface.
  6. For diagnosis, build a timeline from ЖР/ТЖ and map the first failure back to module code.

Review checklist

retry count, result, and sanitized error context, but no secrets.

and the lock does not block unrelated users or tenants.

Contract gaps

If public MCP unica cannot inspect schedules, active jobs, lock state, or runtime artifacts needed for the task, report a Unica MCP contract gap with the missing operation.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.