silverstripe-queuedjobs | provides interfaces for scheduling jobs | Cron Utils library
kandi X-RAY | silverstripe-queuedjobs Summary
kandi X-RAY | silverstripe-queuedjobs Summary
The Queued Jobs module provides a framework for SilverStripe developers to define long running processes that should be run as background tasks. This asynchronous processing allows users to continue using the system while long running tasks proceed when time permits. It also lets developers set these processes to be executed in the future. The module comes with.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Run a job
- Add the fields to the CMS
- Gets the edit form
- List all tasks in the queue
- Process the current page
- Handles the beforeWrite event
- Quote a field
- Get the column content
- Get the queue parameter
- Completes the job
silverstripe-queuedjobs Key Features
silverstripe-queuedjobs Examples and Code Snippets
items = $items;
}
/**
* @return string
*/
public function getTitle(): string
{
return 'My awesome job';
}
public function setup(): void
{
$this->remaining = $this->items;
// Set
SilverStripe\Core\Injector\Injector:
Symbiote\QueuedJobs\Services\QueuedJobService:
properties:
defaultJobs:
# This key is used as the title for error logs and alert emails
ArbitraryName:
# The job type should be
ArbitraryName:
type: 'ScheduledExternalImportJob'
filter:
JobTitle: 'Scheduled import from Services'
QueuedJobDescriptor::get()->filter([
'type' => 'ScheduledExternalImportJob',
'JobTitle' => 'Scheduled import from Services'
]);
Community Discussions
Trending Discussions on silverstripe-queuedjobs
QUESTION
I am migrating a SilverStripe 3 website to SilverStripe 4 and in that process, I resorted to the silverstripe-ldap module. It comes with a dependency to symbiote/silverstripe-queuedjobs
The problem that I have is that symbiote/silverstripe-queuedjobs has its files installed by Composer in a queuedjobs
folder at the same level than vendor
, instead of being in vendor
like all of the other dependencies.
Is it possible to force it to be installed in folder vendor
?
ANSWER
Answered 2020-Mar-30 at 18:44All SilverStripe 3 modules install into the root project folder, rather than into the vendor
folder.
In SilverStripe 4 this is still supported, but by default most modules (including all core and supported modules) install into the vendor
folder.
If you've still got one in your root folder, you probably are installing an incompatible SilverStripe 3 version of that module. You should check the module on Packagist to find which version is SilverStripe 4 compatible (use ^4.5
) and update your Composer constraints.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install silverstripe-queuedjobs
To schedule a job to be executed at some point in the future, pass a date through with the call to queueJob The following will run the publish job in 1 day's time from now.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page