Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STORY: As a 12 Factor App Developer, I need to run Admin Process (XII) tasks as once-off (standalone) processes #31

Closed
4 tasks
iPoetDev opened this issue Jul 19, 2023 · 0 comments
Assignees
Labels
12-Factor: XII: Admin Processes XII: Run admin/management tasks as one-off processes #12Factor #Acceptance Activity: User Acceptance | Readme Header #Architect Activity: Architecture | Readme Header #Deploy Activity: Deploy | Readme Header Kind: Config Kind: Story Readme: 07 Architecture DESIGN: C4 Model, Methods, System, Container, Component, Diagrams, State, etc Readme: 15 Deploy Deployment Flow, Heroku/PaaS, ?/DaaS, Configuration, W/E: Jul 21 Sprint 02: Enď: Arch n Deploy

Comments

@iPoetDev
Copy link
Owner

USER STORY STATEMENT: As a 12 Factor App Developer, I need to run Admin Process (XII) tasks as one-off processes.

User Story | Enabler Task

STORY: As a 12 Factor App Developer, I need to run Admin Process (XII) tasks as once-off (standalone) processes in an identical environment as the regular long-running processes of the app so that these tasks can be run against the same release, using the same codebase, dependency isolation and config of that release.

In the Context of: 
  - Running administration scripts or management tasks in the same environment as the app runtime
As a: As a 12 Factor App Developer
I/We want: I need to run admin/management process tasks as once-off (standalone) processes
In the/an: identical environment as the regular long-running processes of the app, i.e. the `release`.
And: preferablly use a REPL shell environment that ships with the technologies involved.
Because: these tasks must  
  i) run against a release (V)
 ii) use the same codebase (I) .. run against that release (V)
iii) use the same config (III) .. run against that release (V)
iv) align with dependency isolotion (II) of the release
 v) across same deployed process types (VI)
vi) for once off scripts be easy to run in REPL shells.

Type of: Enabler Task

Copy to Readme | Source: https://www.gla.ac.uk/media/Media_730149_smxx.pdf


Defintion: Process Formation

The array of processes that are used to do the app’s regular business (such as handling web requests) as it runs.
i.e.:

  • Running database migrations (e.g. manage.py migrate in Django)
  • Running a console (also known as a REPL shell) to
    i) Run arbitrary code or
    ii) inspect the app’s models against the live database.
  • Running one-time scripts committed into the app’s repo

Acceptance Criteria: Running Database Migration

  • Link: UAC-000?
  • Status: Proposed | Prepared | Pending | Tested | Accepted | Rejected | Superseded | Reverted
  • Definition of Done: Pending | Complete
Given:
When:
Then:

Related

ADR-000? || EPIC-000? || FEATURE-000?


Acceptance Criteria:

  • Link: UAC-000?
  • Status: Proposed | Prepared | Pending | Tested | Accepted | Rejected | Superseded | Reverted
  • Definition of Done: Pending | Complete
Given:
When:
Then:

Related

ADR-000? || EPIC-000? || FEATURE-000?

@iPoetDev iPoetDev added #Acceptance Activity: User Acceptance | Readme Header #Architect Activity: Architecture | Readme Header #Deploy Activity: Deploy | Readme Header 12-Factor: XII: Admin Processes XII: Run admin/management tasks as one-off processes #12Factor Kind: Config Kind: Story Readme: 07 Architecture DESIGN: C4 Model, Methods, System, Container, Component, Diagrams, State, etc Readme: 15 Deploy Deployment Flow, Heroku/PaaS, ?/DaaS, Configuration, W/E: Jul 21 Sprint 02: Enď: Arch n Deploy [zube]: Inbox and removed [zube]: Ready labels Jul 19, 2023
@iPoetDev iPoetDev changed the title STORY: As a 12 Factor App Developer, I need to run Admin Process (XII) tasks as once-off (standalone) processes STORY: As a 12 Factor App Developer, I need to run Admin Process (XII) tasks as once-off (standalone) processes Jul 19, 2023
@iPoetDev iPoetDev self-assigned this Jul 19, 2023
@iPoetDev iPoetDev closed this as completed Aug 1, 2023
@zube zube bot added [zube]: Done and removed [zube]: Ready labels Aug 1, 2023
@zube zube bot removed the [zube]: Archives label Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
12-Factor: XII: Admin Processes XII: Run admin/management tasks as one-off processes #12Factor #Acceptance Activity: User Acceptance | Readme Header #Architect Activity: Architecture | Readme Header #Deploy Activity: Deploy | Readme Header Kind: Config Kind: Story Readme: 07 Architecture DESIGN: C4 Model, Methods, System, Container, Component, Diagrams, State, etc Readme: 15 Deploy Deployment Flow, Heroku/PaaS, ?/DaaS, Configuration, W/E: Jul 21 Sprint 02: Enď: Arch n Deploy
Projects
None yet
Development

No branches or pull requests

1 participant