Comments (4)
Hum, strange behaviour here as both factories are tagged:
$container->register(DoctrineTransportFactory::class, DoctrineTransportFactory::class)
->setArguments([
new Reference('doctrine', ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE),
])
->setPublic(false)
->addTag('scheduler.transport_factory')
->addTag('container.preload', [
'class' => DoctrineTransportFactory::class,
])
;
// ...
$container->register(RedisTransportFactory::class, RedisTransportFactory::class)
->setPublic(false)
->addTag('scheduler.transport_factory')
->addTag('container.preload', [
'class' => RedisTransportFactory::class,
])
;
The only reason that I can see is that doctrine
is not available:
if (!$container->hasDefinition('doctrine')) {
return;
}
Does the doctrine
service available in your application? 🤔
from schedulerbundle.
Ok, small update, it seems that the factory is registered but only if the definition for doctrine
is available, thing is, at the compile time, the definition is not set, i'm working on a fix, keep you updated 🙂
from schedulerbundle.
Back again, the bug was deeper than I though, first, the factories wasn't correctly injected as the doctrine
definition does not exist as the compile time, secondly, the doctrine Connection
was errored during the create
method, both problems solved and tested, I'm gonna deploy the 0.3.3
tag, close this issue, feel free to download it when you can and submit an issue if there's something else missing 🙂
from schedulerbundle.
Thanks for the quick fix :-)
from schedulerbundle.
Related Issues (20)
- ci(tools): introducing Dagger
- bug(bridge): Rebooting the scheduler clears everything in the transport HOT 4
- Segmentation fault with the 0.9.0 tag HOT 8
- feat(command): add autocompletion
- bug: Update to SF6.1-RC leads to serialization type error on NotificationTaskBagNormalizer HOT 9
- build(sf): prepare for 7.0 HOT 1
- bug(bridge): postgres not working HOT 3
- bug(serializer): TraceableNormalizer usage HOT 3
- feat(bridge): Dragonfly bridge
- Fix deprecation warnings for Symfony 6.1 commands HOT 5
- bug(scheduler): tasks are always recreated HOT 1
- bug(worker): TaskInterface::setLastExecution() must be called even when an error occurs
- feat(command): Gracefully stopping the worker HOT 2
- bug(scheduler): regression on scheduler:reboot (0.9.4) HOT 5
- bug(transport): using Debug pack resulting "datetime normalizer" error HOT 9
- bug(command): scheduler:stop-worker not stopping when wait and force arguments present HOT 5
- Use of mutation testing in SchedulerBundle - Help needed
- Deprecations coming with Symfony 6.3
- How do you 'refresh' your scheduled tasks when you make a change to the scheduler.yaml? HOT 1
- Add support for Symfony 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from schedulerbundle.