Comments (7)
Hi @babeuloula 👋🏻
I'm gonna take time to investigate this bug, it should be merged for 0.4.3
from schedulerbundle.
Hi @babeuloula 👋🏻
Strange situation, I'm gonna keep an eye on this issues and add more tests to confirm that every task type can be used in Doctrine
bridge avec with Messenger
integration, I'm closing this PR but working on background on this use case.
Thanks again for the feedback
from schedulerbundle.
Hi @babeuloula 👋🏻
Strange behaviour here, I've tried to reproduce the bug locally in the tests, I don't find a way
Regarding the following comment:
You test a serializer but it's not a normalizer instead ?
The test is written around the serializer as we need a serializer to use ObjectNormalizer
, here's a test that tries to reproduce the context:
public function testMessengerTaskCanBeNormalized(): void
{
$objectNormalizer = new ObjectNormalizer(null, null, null, new PropertyInfoExtractor([], [new PhpDocExtractor(), new ReflectionExtractor()]));
$notificationTaskBagNormalizer = new NotificationTaskBagNormalizer($objectNormalizer);
$normalizer = new TaskNormalizer(
new DateTimeNormalizer(),
new DateTimeZoneNormalizer(),
new DateIntervalNormalizer(),
$objectNormalizer,
$notificationTaskBagNormalizer
);
$serializer = new Serializer([
$notificationTaskBagNormalizer,
$normalizer,
new DateTimeNormalizer(),
new DateIntervalNormalizer(),
new JsonSerializableNormalizer(),
$objectNormalizer
], [new JsonEncoder()]);
$objectNormalizer->setSerializer($serializer);
$task = (new MessengerTask(uniqid(), new FooMessage()))
->setExpression('* * * * *')
->setTimezone(new DateTimeZone('Europe/Paris'))
->setSingleRun(true)
;
$data = $normalizer->normalize($task, 'json');
self::assertArrayHasKey('taskInternalType', $data);
self::assertSame(MessengerTask::class, $data['taskInternalType']);
self::assertArrayHasKey('body', $data);
self::assertArrayHasKey('message', $data['body']);
self::assertArrayHasKey('class', $data['body']['message']);
self::assertArrayHasKey('payload', $data['body']['message']);
}
The test is valid, maybe I miss something?
PS: Here's the related PR: #66
from schedulerbundle.
Hello,
from schedulerbundle.
Hello @Guikingone, you can clone this repo and test it.
If you have an error with mkcert, just comment this line and use 8888 instead of 80.
from schedulerbundle.
Hi @babeuloula 👋🏻
I'm seeing that you're using 0.4.1
, could you update your dependencies to 0.4.2
and test again the process ?
I've tested locally and via the repository, both succeed
from schedulerbundle.
Hello @Guikingone,
I don't know why and how but I've restart a new project with the same dependencies and I've no longer this issue. It's very weird ...
If you can't reproduice this bug (and now me) I can't explain where the problem come from.
Thanks for your time.
You can close this issue if you want.
from schedulerbundle.
Related Issues (20)
- Deprecated implicit conversion from float to int HOT 2
- Docrine transport might not work properly with Postresql HOT 7
- 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
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.