Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.
| from celery import Task | |
| from celery.task import task | |
| from my_app.models import FailedTask | |
| from django.db import models | |
| @task(base=LogErrorsTask) | |
| def some task(): | |
| return result | |
| class LogErrorsTask(Task): |
| #experimental response to https://github.com/PowerShell/PowerShell/issues/20750 | |
| function TabExpansion2 { | |
| <# Options include: | |
| RelativeFilePaths - [bool] | |
| Always resolve file paths using Resolve-Path -Relative. | |
| The default is to use some heuristics to guess if relative or absolute is better. | |
| To customize your own custom options, pass a hashtable to CompleteInput, e.g. | |
| return [System.Management.Automation.CommandCompletion]::CompleteInput($inputScript, $cursorColumn, | |
| @{ RelativeFilePaths=$false } |